1. 07 10月, 2005 10 次提交
    • J
      git-apply: parse index information · 2cf67f1e
      Junio C Hamano 提交于
      Add an new option --show-index-info to git-apply command to
      summarize the index information new git-diff outputs.  The
      command shows something similar to git-ls-files --stage output
      for the pre-change image:
      
          100644 7be5041...	apply.c
          100644 ec2a161...	cache.h
          ...
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      2cf67f1e
    • J
      Show original and resulting blob object info in diff output. · ec1fcc16
      Junio C Hamano 提交于
      This adds more cruft to diff --git header to record the blob SHA1 and
      the mode the patch/diff is intended to be applied against, to help the
      receiving end fall back on a three-way merge.  The new header looks
      like this:
      
          diff --git a/apply.c b/apply.c
          index 7be5041..8366082 100644
          --- a/apply.c
          +++ b/apply.c
          @@ -14,6 +14,7 @@
           //    files that are being modified, but doesn't apply the patch
           //  --stat does just a diffstat, and doesn't actually apply
          +//  --show-index-info shows the old and new index info for...
          ...
      
      Upon receiving such a patch, if the patch did not apply cleanly to the
      target tree, the recipient can try to find the matching old objects in
      her object database and create a temporary tree, apply the patch to
      that temporary tree, and attempt a 3-way merge between the patched
      temporary tree and the target tree using the original temporary tree
      as the common ancestor.
      
      The patch lifts the code to compute the hash for an on-filesystem
      object from update-index.c and makes it available to the diff output
      routine.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      ec1fcc16
    • J
      mailsplit: allow feeding mbox from standard input. · 8b73edf4
      Junio C Hamano 提交于
      When mbox argument is missing, read the mailbox from the standard
      input.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      8b73edf4
    • J
      54ba6013
    • J
      mailsplit: -d<prec> · e11fc020
      Junio C Hamano 提交于
      Instead of the default 4 digits with leading zeros, different precision
      can be specified for the generated filenames.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      e11fc020
    • J
      git-format-patch: --stdout option. · 655c7470
      Junio C Hamano 提交于
      This new flag generates the mbox formatted output to the standard
      output, instead of saving them into a file per patch and implies --mbox.
      
      It also fixes a corner case where the commit does not have *any* message.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      655c7470
    • J
      Clean mail files after dealing with them. · 4ebe63df
      Junio C Hamano 提交于
      When you are applying 200 mails in sequence, .dotest/ directory
      will be littered with many messsages, and when the patch in one
      of them fails to apply, it is not obvious which message was
      being processed.  Remove the one that has been already dealt
      with, so that the last failed one is found typically as the
      lowest numbered split message.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      4ebe63df
    • J
      Fall back to three-way merge when applying a patch. · 47f0b6d5
      Junio C Hamano 提交于
      After git-apply fails, attempt to find a base tree that the patch
      cleanly applies to, and do a three-way merge using that base tree into
      the current index, if .dotest/.3way file exists.  This flag can be
      controlled by giving -m flag to git-applymbox command.
      
      When the fall-back merge fails, the working tree can be resolved the
      same way as you would normally hand resolve a conflicting merge.
      When making commit, use .dotest/final-commit as the log message
      template.  Or you could just choose to 'git-checkout-index -f -a'
      to revert the failed merge.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      47f0b6d5
    • L
      Allow "-u" flag to tag signing · bc162e40
      Linus Torvalds 提交于
      The current "git tag -s" thing always uses the tagger name as the signing
      user key, which is very irritating, since my key is under my email
      address, but the tagger key obviously contains the actual machine name
      too.
      
      Now, I could just use "GIT_COMMITTER_EMAIL" and force it to be my real
      email, but I actually think that it's nice to see which machine I use for
      my work.
      
      So rather than force my tagger ID to have to match the gpg key name, just
      support the "-u" flag to "git tag" instead. It implicitly enables signing,
      since it doesn't make any sense without it. Thus:
      
      	git tag -u <gpg-key-name> <tag-name> [<tagged-object>]
      
      will use the named gpg key for signing.
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      bc162e40
    • A
      Do not require ls-remote to be run inside a git repository. · 12aac5de
      Alex Riesen 提交于
      The scripts work perfectly without a repository.
      Signed-off-by: NAlex Riesen <raa.lkml@gmail.com>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      12aac5de
  2. 06 10月, 2005 9 次提交
  3. 05 10月, 2005 8 次提交
  4. 04 10月, 2005 13 次提交