1. 02 7月, 2008 8 次提交
  2. 30 6月, 2008 8 次提交
  3. 29 6月, 2008 10 次提交
  4. 28 6月, 2008 7 次提交
    • J
      commit-tree: lift completely arbitrary limit of 16 parents · ef98c5ca
      Johannes Schindelin 提交于
      There is no really good reason to have a merge with more than 16
      parents, but we have a history of giving our users rope.
      
      Combined with the fact that there was no good reason for that
      arbitrary limit in the first place, here is an all-too-easy to fix.
      
      Kind of wished-for by Len Brown.
      Signed-off-by: NJohannes Schindelin <johannes.schindelin@gmx.de>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      ef98c5ca
    • D
      shrink git-shell by avoiding redundant dependencies · 5b8e6f85
      Dmitry Potapov 提交于
      A lot of modules that have nothing to do with git-shell functionality
      were linked in, bloating git-shell more than 8 times.
      
      This patch cuts off redundant dependencies by:
      1. providing stubs for three functions that make no sense for git-shell;
      2. moving quote_path_fully from environment.c to quote.c to make the
         later self sufficient;
      3. moving make_absolute_path into a new separate file.
      
      The following numbers have been received with the default optimization
      settings on master using GCC 4.1.2:
      
      Before:
         text    data     bss     dec     hex filename
       143915    1348   93168  238431   3a35f git-shell
      
      After:
         text    data     bss     dec     hex filename
        17670     788    8232   26690    6842 git-shell
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      5b8e6f85
    • C
      help: check early if we have a command, if not try a documentation topic · 2dce956e
      Christian Couder 提交于
      Before this patch, something like "git help tutorial" did not work,
      people had to use "git help gittutorial" which is not very intuitive.
      
      This patch uses the "is_git_command" function to test early if the
      argument passed to "git help" is a git command, and if this is not the
      case then we prefix the argument with "git" instead of "git-".
      
      This way, things like "git help tutorial" or "git help glossary" will
      work fine.
      
      The little downside of this patch is that the "is_git_command" is a
      little bit slow.
      Signed-off-by: NChristian Couder <chriscool@tuxfamily.org>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      2dce956e
    • D
      git-apply: handle a patch that touches the same path more than once better · 7a07841c
      Don Zickus 提交于
      When working with a lot of people who backport patches all day long, every
      once in a while I get a patch that modifies the same file more than once
      inside the same patch.  git-apply either fails if the second change relies
      on the first change or silently drops the first change if the second change
      is independent.
      
      The silent part is the scary scenario for us.  Also this behaviour is
      different from the patch-utils.
      
      I have modified git-apply to create a table of the filenames of files it
      modifies such that if a later patch chunk modifies a file in the table it
      will buffer the previously changed file instead of reading the original file
      from disk.
      
      Logic has been put in to handle creations/deletions/renames/copies.  All the
      relevant tests of git-apply succeed.
      
      A new test has been added to cover the cases I addressed.
      
      The fix is relatively straight-forward.
      Signed-off-by: NDon Zickus <dzickus@redhat.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      7a07841c
    • J
      fetch: report local storage errors in status table · 6315472e
      Jeff King 提交于
      Previously, if there was an error while storing a local
      tracking ref, the low-level functions would report an error,
      but fetch's status output wouldn't indicate any problem.
      E.g., imagine you have an old "refs/remotes/origin/foo/bar" but
      upstream has deleted "foo/bar" in favor of a new branch
      "foo". You would get output like this:
      
        error: there are still refs under 'refs/remotes/origin/foo'
        From $url_of_repo
         * [new branch]      foo        -> origin/foo
      
      With this patch, the output takes into account the status of
      updating the local ref:
      
        error: there are still refs under 'refs/remotes/origin/foo'
        From $url_of_repo
         ! [new branch]      foo        -> origin/foo  (unable to update local ref)
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      6315472e
    • J
      clone: respect url.insteadOf setting in global configs · bc0c0d81
      Johannes Schindelin 提交于
      When we call "git clone" with a url that has a rewrite rule in either
      $HOME/.gitconfig or /etc/gitconfig, the URL can be different from
      what the command line expects it to be.
      
      So, let's use the URL as the remote structure has it, not the literal
      string from the command line.
      
      Noticed by Pieter de Bie.
      Signed-off-by: NJohannes Schindelin <johannes.schindelin@gmx.de>
      Acked-by: NDaniel Barkalow <barkalow@iabervon.org>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      bc0c0d81
    • J
      Document the double-dash "rev -- path" disambiguator · d0658ec6
      Junio C Hamano 提交于
      This is a very well established command line convention that old residents
      of the git mailing list knew by heart and nobody even thought about
      documenting it explicitly, which was not very nice.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      d0658ec6
  5. 27 6月, 2008 7 次提交