1. 02 8月, 2007 1 次提交
  2. 25 7月, 2007 1 次提交
  3. 20 7月, 2007 1 次提交
  4. 14 7月, 2007 1 次提交
  5. 09 7月, 2007 1 次提交
  6. 07 7月, 2007 1 次提交
  7. 03 7月, 2007 1 次提交
  8. 25 6月, 2007 1 次提交
  9. 07 6月, 2007 1 次提交
    • J
      War on whitespace · a6080a0a
      Junio C Hamano 提交于
      This uses "git-apply --whitespace=strip" to fix whitespace errors that have
      crept in to our source files over time.  There are a few files that need
      to have trailing whitespaces (most notably, test vectors).  The results
      still passes the test, and build result in Documentation/ area is unchanged.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      a6080a0a
  10. 26 5月, 2007 1 次提交
  11. 16 4月, 2007 1 次提交
  12. 04 4月, 2007 2 次提交
    • J
      git-read-tree --index-output=<file> · 5e7f56ac
      Junio C Hamano 提交于
      This corrects the interface mistake of the previous one, and
      gives a command line parameter to the only plumbing command that
      currently needs it: "git-read-tree".
      
      We can add the calls to set_alternate_index_output() to other
      plumbing commands that update the index if/when needed.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      5e7f56ac
    • J
      _GIT_INDEX_OUTPUT: allow plumbing to output to an alternative index file. · 30ca07a2
      Junio C Hamano 提交于
      When defined, this allows plumbing commands that update the
      index (add, apply, checkout-index, merge-recursive, mv,
      read-tree, rm, update-index, and write-tree) to write their
      resulting index to an alternative index file while holding a
      lock to the original index file.  With this, git-commit that
      jumps the index does not have to make an extra copy of the index
      file, and more importantly, it can do the update while holding
      the lock on the index.
      
      However, I think the interface to let an environment variable
      specify the output is a mistake, as shown in the documentation.
      If a curious user has the environment variable set to something
      other than the file GIT_INDEX_FILE points at, almost everything
      will break.  This should instead be a command line parameter to
      tell these plumbing commands to write the result in the named
      file, to prevent stupid mistakes.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      30ca07a2
  13. 28 3月, 2007 1 次提交
  14. 09 3月, 2007 1 次提交
  15. 06 3月, 2007 1 次提交
  16. 23 2月, 2007 1 次提交
  17. 22 2月, 2007 1 次提交
  18. 04 2月, 2007 1 次提交
  19. 29 1月, 2007 2 次提交
  20. 25 1月, 2007 1 次提交
  21. 23 1月, 2007 1 次提交
  22. 14 1月, 2007 1 次提交
    • J
      Consistent message encoding while reusing log from an existing commit. · 5ac2715f
      Junio C Hamano 提交于
      The following commands can reuse log message from an existing
      commit while creating a new commit:
      
      	git-cherry-pick
      	git-rebase (both with and without --merge)
      	git-commit (-c and -C)
      
      When the original commit was made in a different encoding from
      the current i18n.commitencoding, "cat-file commit" would give a
      string that is inconsistent with what the resulting commit will
      claim to be in.  Replace them with "git show -s --encoding".
      
      "git-rebase" without --merge is "git format-patch" piped to "git
      am" in essence, and has been taken care of before this commit.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      5ac2715f
  23. 13 1月, 2007 1 次提交
  24. 11 1月, 2007 1 次提交
  25. 09 1月, 2007 1 次提交
  26. 02 1月, 2007 1 次提交
  27. 16 12月, 2006 2 次提交
    • S
      Suggest use of "git add file1 file2" when there is nothing to commit. · aeb80c70
      Shawn O. Pearce 提交于
      If a user modifies files and runs 'git commit' (without the very
      useful -a option) and they have not yet updated the index they
      are probably coming from another SCM-like tool which would perform
      the same as 'git commit -a' in this case.  Showing the user their
      current status and a final line of "nothing to commit" is not very
      reassuring, as the user might believe that Git did not recognize
      their files were modified.
      
      Instead we can suggest as part of the 'nothing to commit' message
      that the user invoke 'git add' to add files to their next commit.
      
      Suggested by Andy Parkins' Git 'niggles' list
      (<200612132237.10051.andyparkins@gmail.com>).
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      aeb80c70
    • N
      make commit message a little more consistent and conforting · ebd124c6
      Nicolas Pitre 提交于
      It is nicer to let the user know when a commit succeeded all the time,
      not only the first time.  Also the commit sha1 is much more useful than
      the tree sha1 in this case.
      
      This patch also introduces a -q switch to supress this message as well
      as the summary of created/deleted files.
      Signed-off-by: NNicolas Pitre <nico@cam.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      ebd124c6
  28. 11 12月, 2006 1 次提交
    • J
      git-commit: allow --only to lose what was staged earlier. · 158d0577
      Junio C Hamano 提交于
      The command used to have a safety valve to prevent this sequence:
      
      	edit foo
      	git update-index foo
      	edit foo
      	git diff foo
      	git commit --only foo
      
      The reason for this was because an inexperienced user might
      mistakenly think what is shown with the last-minute diff
      contains all the change that is being committed (instead, what
      the user asked to check was an incremental diff since what has
      been staged so far).  However, this turns out to only annoy
      people who know what they are doing.  Inexperienced people
      would not be using the first "update-index" anyway, in which
      case they would see the full changes in the "git diff".
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      158d0577
  29. 25 11月, 2006 1 次提交
  30. 16 10月, 2006 1 次提交
    • L
      git-revert with conflicts to behave as git-merge with conflicts · a9cb3c6e
      Luben Tuikov 提交于
      In a busy project, reverting a commit almost always results
      in a conflict between one or more files (depending on the
      commit being reverted).  It is useful to record this
      conflict in the commit-to-be message of the resulting commit
      (after the resolve).  The process now becomes:
      
      git-revert <SHA-1>
      <git complains and prints failed automatic>
      <user manually resolves>
      git-update-index <resolved files>
      git-commit -s
      
      And the commit message is now a merge of the revert commit
      message and the conflict commit message, giving the user a
      chance to edit it or add more information:
      Signed-off-by: NLuben Tuikov <ltuikov@yahoo.com>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      a9cb3c6e
  31. 08 10月, 2006 1 次提交
  32. 04 10月, 2006 1 次提交
  33. 27 9月, 2006 1 次提交
    • J
      update a few Porcelain-ish for ref lock safety. · cede7526
      Junio C Hamano 提交于
      This updates the use of git-update-ref in git-branch, git-tag
      and git-commit to make them safer in a few corner cases as
      demonstration.
      
       - git-tag makes sure that the named tag does not exist, allows
         you to edit tag message and then creates the tag.  If a tag
         with the same name was created by somebody else in the
         meantime, it used to happily overwrote it.  Now it notices
         the situation.
      
       - git-branch -d and git-commit (for the initial commit) had the
         same issue but with smaller race window, which is plugged
         with this.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      cede7526
  34. 13 9月, 2006 1 次提交
  35. 09 9月, 2006 1 次提交
  36. 14 7月, 2006 1 次提交
  37. 11 7月, 2006 1 次提交
    • S
      Record the type of commit operation in the reflog. · a3a733e6
      Shawn Pearce 提交于
      If committing a merge (.git/MERGE_HEAD exists), an initial tree
      (no HEAD) or using --amend to amend the prior commit then denote
      the subtype of commit in the reflog.  This helps to distinguish
      amended or merge commits from normal commits.
      
      In the case of --amend the prior sha1 is probably the commit which
      is being thrown away in favor of the new commit.  Since it is likely
      that the old commit doesn't have any ref pointing to it anymore
      it can be interesting to know why that the commit was replaced
      and orphaned.
      
      In the case of a merge the prior sha1 is probably the first parent
      of the new merge commit.  Consequently having its prior sha1 in the
      reflog is slightly less interesting but its still informative to
      know the commit was the result of a merge which had to be completed
      by hand.
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      a3a733e6