1. 08 5月, 2007 8 次提交
  2. 07 5月, 2007 9 次提交
  3. 06 5月, 2007 9 次提交
  4. 05 5月, 2007 4 次提交
  5. 04 5月, 2007 10 次提交
    • J
      git-tag(1): -v option is a subcommand; fix code block · 86b9e017
      Jonas Fonseca 提交于
      When the -v is passed, git-tag will exit after it is processed like it
      does with the -d and -l options. Additionally, missing code block caused
      wrong rendering of an option example.
      Signed-off-by: NJonas Fonseca <fonseca@diku.dk>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      86b9e017
    • S
      Improve request-pull to handle non-rebased branches · ff06c743
      Shawn O. Pearce 提交于
      This is actually a few different changes to request-pull,
      making it slightly smarter:
      
       1) Minor cleanup of revision->base variable names, making it
          follow the head/headrev naming convention that is already
          in use.
      
       2) Compute the merge-base between the two revisions upfront
          and reuse that selected merge-base to create the diffstat.
      
       3) Refuse to generate a pull request for branches that have no
          existing relationship.  These aren't very common and would mess
          up our diffstat generation.
      
       4) Disable the PAGER when running shortlog and diff, as these
          would otherwise activate the pager for each command when
          git-request-pull is run on a tty.  Instead users can get the
          entire output paged (if desired) using `git -p request-pull`.
      
       5) Use shortlog rather than `git log | git shortlog` now that
          recent shortlog versions are able to run the revision listing
          internally.
      
       6) Attempt to resolve the input URL using the user's configured
          remotes.  This is useful if the URL you want the recipient to
          see is also the one you used to push your changes.  If not a
          config-file remote could easily be setup for the public URL
          and request-pull could be passed that name instead.
      
       7) Automatically guess and include the remote branch name in the
          body of the message.  We list the branch name immediately after
          the URL, making it easy for the recipient to copy and paste
          the entire line onto a `git pull` command line.  Rumor has it
          Linus likes this format, for exactly that reason.
      
          If multiple branches at the remote match $headrev we take the
          first one returned by peek-remote and assume it is suitable.
      
          If no branches are available we warn the user about the problem,
          but insert a static string that is not a valid branch name
          and would be obvious to anyone reading the message as being
          totally incorrect.  This allows users to still generate a
          template message without network access (for example) and
          hand-correct the bits that cannot be verified.
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      ff06c743
    • J
      Merge branch 'maint' · 9aae177a
      Junio C Hamano 提交于
      * maint:
        gitweb: use decode_utf8 directly
        posix compatibility for t4200
        Document 'opendiff' value in config.txt and git-mergetool.txt
        Allow PERL_PATH="/usr/bin/env perl"
        Make xstrndup common
        diff.c: fix "size cache" handling.
        http-fetch: Disable use of curl multi support for libcurl < 7.16.
      9aae177a
    • I
      gitweb: use decode_utf8 directly · e3ad95a8
      Ismail Dönmez 提交于
      Using decode() tries to decode data that is already UTF-8 and
      borks, but decode_utf8 from Encode.pm has a built-in safety
      against that.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      e3ad95a8
    • B
      posix compatibility for t4200 · c256acb8
      Bryan Larsen 提交于
      Fix t4200 so that it also works on OS X by not relying on gnu
      extensions to sed.
      Signed-off-by: NBryan Larsen <bryan@larsen.st>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      c256acb8
    • A
      e4e92b3f
    • B
      Allow PERL_PATH="/usr/bin/env perl" · 5318f698
      Bryan Larsen 提交于
      There is a mechanism PERL_PATH in the Makefile to specify path to
      Perl binary, but sometimes it is convenient to let 'env' figure
      out where Perl comes from, with PERL_PATH="/usr/bin/env perl".
      
      Allowing this would make things easier to MacPorts, where we wish
      to work with the MacPorts perl if it is installed, but fall back
      to the system perl if it isn't.
      Signed-off-by: NBryan Larsen <bryan@larsen.st>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      5318f698
    • D
      Make xstrndup common · 5094102e
      Daniel Barkalow 提交于
      This also improves the implementation to match how strndup is
      specified (by GNU): if the length given is longer than the string,
      only the string's length is allocated and copied, but the string need
      not be null-terminated if it is at least as long as the given length.
      Signed-off-by: NDaniel Barkalow <barkalow@iabervon.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      5094102e
    • J
      diff.c: fix "size cache" handling. · cdda6662
      Junio C Hamano 提交于
      We broke the size-cache handling when we changed the function
      signature of sha1_object_info() in 21666f1a.  We obviously
      wanted to cache the size we obtained when sha1_object_info()
      succeeded, not when it failed.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      cdda6662
    • A
      http-fetch: Disable use of curl multi support for libcurl < 7.16. · 9cf04301
      Alexandre Julliard 提交于
      curl_multi_remove_handle() is broken in libcurl < 7.16, in that it
      doesn't correctly update the active handles count when a request is
      aborted. This causes the transfer to hang forever waiting for the
      handle count to become less than the number of active requests.
      Signed-off-by: NAlexandre Julliard <julliard@winehq.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      9cf04301