1. 28 11月, 2005 7 次提交
  2. 27 11月, 2005 5 次提交
  3. 26 11月, 2005 10 次提交
  4. 25 11月, 2005 3 次提交
  5. 24 11月, 2005 7 次提交
    • J
      diff-tree: teach single-commit diff-tree to honour grafts · a50b870a
      Junio C Hamano 提交于
      We used to read the commit objects by hand and ignored the grafts.
      Rewrite it using lookup_commit() API, to make it grafts-aware.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      a50b870a
    • J
      Teach update-index to read from ls-tree. · 9c20a470
      Junio C Hamano 提交于
      git-update-index --index-info can almost be usable to read from ls-tree
      output to update the index (and not the working tree file) to HEAD commit,
      but not quite.  It was designed to read from git-apply --index-info
      output, and does not want " blob " in ls-tree output.  Accept that as well.
      
      This lets us update "git-checkout <ent> <path>" that used to filter the
      extra " blob " string out.  Noted by Luben.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      9c20a470
    • J
      git-revert: make --edit default. · b7884981
      Junio C Hamano 提交于
      Revert always should explain why, so make --edit the default,
      unless stdin is not a terminal.  If you really don't want to say
      anything, you can say "git-revert --no-edit $commit", or if you
      are really sick, you could also say "git-revert $commit </dev/null".
      But please don't.
      
      You can also say "git-cherry-pick --edit $commit".  Not editting
      the commit log message is the default for cherry-pick.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      b7884981
    • L
      Allow editing of a revert-message · 30c7bb24
      Linus Torvalds 提交于
      I think all commit operations should allow editing of the message (ie we
      should do this for merges too), but that's _particularly_ true of doing a
      "git revert".
      
      We should always explain why we needed to revert something.
      
      This patch adds a "-e" or "--edit" flag to "git revert", although I
      actually suspect it should be on by default (and we should have a
      "--no-edit" flag to disable it, probably together with an automatic
      disable if stdin isn't a terminal).
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      30c7bb24
    • J
      Fix git-mv for moving directories with 1 file · 073dab13
      Josef Weidendorfer 提交于
      This is fixed by putting the file into @changedfiles/@addedfiles,
      and not the directory this file is in.
      
      Additionally, this fixes the behavior for attempting to overwrite
      a file with a directory, and gives a message for all cases where
      overwriting is not possible (file->dir,dir->file,dir->dir).
      
      Thanks for Alexander Litvinov for noting this problem.
      Signed-off-by: NJosef Weidendorfer <Josef.Weidendorfer@gmx.de>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      073dab13
    • J
      git-merge: make recursive the default strategy · fbf8ac21
      Junio C Hamano 提交于
      git-pull invoked merge with recursive as the default strategy
      for some time now; match it in the git-merge itself.  Also avoid
      listing more than one strategy on default because we have only
      one strategy that can resolve an octopus and we are already
      counting heads here.  This reduces the need to stash away local
      modifications.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      fbf8ac21
    • J
      pack-redundant: type cleanups. · b99a394c
      Junio C Hamano 提交于
      Binary representation of object names are unsigned char[20], not
      signed.  Also verbose output had %lu format printing size_t
      without (unsigned long) cast other places already had, so match
      that.  Using format %zu was suggested but might not be supported
      as widely.
      
      Noted by Morten Welinder, fixed with input from H. Peter Anvin
      and Hideaki Yoshifuji.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      b99a394c
  6. 23 11月, 2005 7 次提交
  7. 22 11月, 2005 1 次提交