1. 07 11月, 2005 1 次提交
  2. 05 11月, 2005 1 次提交
  3. 04 11月, 2005 1 次提交
  4. 04 10月, 2005 1 次提交
  5. 29 9月, 2005 3 次提交
    • J
      Use git-merge in git-pull (second try). · 60fb5b2c
      Junio C Hamano 提交于
      This again makes git-pull to use git-merge, so that different merge
      strategy can be specified from the command line.  Without explicit
      strategy parameter, it defaults to git-merge-resolve if only one
      remote is pulled, and git-merge-octopus otherwise, to keep the
      default behaviour of the command the same as the original.
      
      Also this brings another usability measure: -n flag from the command
      line, if given, is passed to git-merge to prevent it from running the
      diffstat at the end of the merge.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      60fb5b2c
    • J
      Use git-update-ref in scripts. · bf7960eb
      Junio C Hamano 提交于
      This uses the git-update-ref command in scripts for safer updates.
      Also places where we used to read HEAD ref by using "cat" were fixed
      to use git-rev-parse.  This will matter when we start using symbolic
      references.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      bf7960eb
    • J
      Fix default pull not to do an unintended Octopus. · 05dd8e2e
      Junio C Hamano 提交于
      The refspecs specified in the .git/remotes/<remote> on the "Pull: "
      lines are for fetching multiple heads in one go, but most of the time
      making an Octopus out of them is not what is wanted.  Make git-fetch
      leave the marker in .git/FETCH_HEAD file so that later stages can
      tell which heads are for merging and which are not.
      
      Tom Prince made me realize how stupid the original behaviour was.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      05dd8e2e
  6. 23 9月, 2005 1 次提交
  7. 22 9月, 2005 2 次提交
  8. 21 9月, 2005 2 次提交
  9. 16 9月, 2005 1 次提交
  10. 14 9月, 2005 1 次提交
  11. 08 9月, 2005 1 次提交
    • J
      Big tool rename. · 215a7ad1
      Junio C Hamano 提交于
      As promised, this is the "big tool rename" patch.  The primary differences
      since 0.99.6 are:
      
        (1) git-*-script are no more.  The commands installed do not
            have any such suffix so users do not have to remember if
            something is implemented as a shell script or not.
      
        (2) Many command names with 'cache' in them are renamed with
            'index' if that is what they mean.
      
      There are backward compatibility symblic links so that you and
      Porcelains can keep using the old names, but the backward
      compatibility support  is expected to be removed in the near
      future.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      215a7ad1
  12. 27 8月, 2005 1 次提交
    • J
      Fix pulling into the same branch. · b10ac50f
      Junio C Hamano 提交于
      When the "git pull" command updates the branch head you are
      currently on, before doing anything else, first update your
      index file and the working tree contents to that of the new
      branch head.  Otherwise, the later resolving steps would think
      your index file is attempting to revert the change between the
      original head commit and the updated head commit.
      
      It uses two-tree fast-forward form of "read-tree -m -u" to
      prevent losing whatever local changes you may have in the
      working tree to do this update.  I think this would at least
      make things safer (a lot safer), and prevent mistakes.
      
      Also "git fetch" command is forbidden from fetching and fast
      forwarding the current branch head unless --update-head-ok flag
      is given.  "git pull" passes the flag when it internally calls
      "git fetch".
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      b10ac50f
  13. 25 8月, 2005 2 次提交
  14. 17 7月, 2005 1 次提交
    • J
      [PATCH] fetch/pull: short-hand notation for remote repositories. · f170e4b3
      Junio C Hamano 提交于
      Since pull and fetch are done often against the same remote
      repository repeatedly, keeping the URL to pull from along with
      the name of the head to use in $GIT_DIR/branches/$name makes a
      lot of sense.  Adopt that convention from Cogito, and try to be
      compatible when possible; storing a partial URL and completing
      it with a trailing path may not be understood by Cogito.
      
      While we are at it, fix pulling a tag.  Earlier, we updated only
      refs/tags/$tag without updating FETCH_HEAD, and called
      resolve-script using a stale (or absent) FETCH_HEAD.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      f170e4b3
  15. 09 7月, 2005 2 次提交
    • L
      Make "git resolve" take the merge message in $3 · 3ba513c3
      Linus Torvalds 提交于
      It used to do "Merge $3" as the message, but that ends up being
      inconvenient, and much more easily done inside git-pull-script instead.
      
      This makes the third argument to "git resolve" much easier to explain.
      3ba513c3
    • L
      Add "git-sh-setup-script" for common git shell script setup · b33e9666
      Linus Torvalds 提交于
      It sets up the normal git environment variables and a few helper
      functions (currently just "die()"), and returns ok if it all looks like
      a git archive.  So use it something like
      
      	. git-sh-setup-script || die "Not a git archive"
      
      to make the rest of the git scripts more careful and readable.
      b33e9666
  16. 29 6月, 2005 1 次提交
  17. 28 6月, 2005 1 次提交
  18. 22 6月, 2005 1 次提交
    • L
      Clean up different special *HEAD handling · 6b38a402
      Linus Torvalds 提交于
      We codify the following different heads (in addition to the main "HEAD",
      which points to the current branch, of course):
      
       - FETCH_HEAD
      
         Populated by "git fetch"
      
       - ORIG_HEAD
      
         The old HEAD before a "git pull/resolve" (successful or not)
      
       - LAST_MERGE
      
         The HEAD we're currently merging in "git pull/resolve"
      
       - MERGE_HEAD
      
         The previous head of a unresolved "git pull", which gets committed by
         a "git commit" after manually resolving the result
      
      We used to have "MERGE_HEAD" be populated directly by the fetch, and we
      removed ORIG_HEAD and LAST_MERGE too aggressively.
      6b38a402
  19. 09 6月, 2005 1 次提交
  20. 07 6月, 2005 1 次提交
  21. 26 5月, 2005 1 次提交
  22. 23 5月, 2005 1 次提交
  23. 10 5月, 2005 1 次提交
    • J
      Introduce GIT_DIR environment variable. · 8ac069ac
      Junio C Hamano 提交于
      During the mailing list discussion on renaming GIT_ environment
      variables, people felt that having one environment that lets the
      user (or Porcelain) specify both SHA1_FILE_DIRECTORY (now
      GIT_OBJECT_DIRECTORY) and GIT_INDEX_FILE for the default layout
      would be handy.  This change introduces GIT_DIR environment
      variable, from which the defaults for GIT_INDEX_FILE and
      GIT_OBJECT_DIRECTORY are derived.  When GIT_DIR is not defined,
      it defaults to ".git".  GIT_INDEX_FILE defaults to
      "$GIT_DIR/index" and GIT_OBJECT_DIRECTORY defaults to
      "$GIT_DIR/objects".
      
      Special thanks for ideas and discussions go to Petr Baudis and
      Daniel Barkalow.  Bugs are mine ;-)
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      8ac069ac
  24. 06 5月, 2005 2 次提交
  25. 05 5月, 2005 2 次提交
  26. 04 5月, 2005 1 次提交
  27. 30 4月, 2005 2 次提交
  28. 27 4月, 2005 1 次提交
    • L
      git-pull-script: do automatic merges · 9831d8f8
      Linus Torvalds 提交于
      When the trivial "read-tree" merge fails, fall back on the (equally
      trivial) automatic merge script instead of forcing the user to do
      it by hand.
      
      When _that_ fails, you get to do a manual merge.
      9831d8f8
  29. 20 4月, 2005 2 次提交
  30. 19 4月, 2005 1 次提交