1. 07 12月, 2006 1 次提交
  2. 20 11月, 2006 1 次提交
  3. 09 11月, 2006 1 次提交
    • J
      git-pickaxe: retire pickaxe · acca687f
      Junio C Hamano 提交于
      Just make it take over blame's place.  Documentation and command
      have all stopped mentioning "git-pickaxe".  The built-in synonym
      is left in the command table, so you can still say "git pickaxe",
      but it probably is a good idea to retire it as well.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      acca687f
  4. 24 10月, 2006 2 次提交
  5. 23 10月, 2006 1 次提交
    • J
      Make prune also run prune-packed · 2eb53e65
      J. Bruce Fields 提交于
      Both the git-prune manpage and everday.txt say that git-prune should also prune
      unpacked objects that are also found in packs, by running git prune-packed.
      
      Junio thought this was "a regression when prune was rewritten as a built-in."
      
      So modify prune to call prune-packed again.
      Signed-off-by: NJ. Bruce Fields <bfields@citi.umich.edu>
      2eb53e65
  6. 20 10月, 2006 1 次提交
    • J
      git-pickaxe: blame rewritten. · cee7f245
      Junio C Hamano 提交于
      Currently it does what git-blame does, but only faster.
      
      More importantly, its internal structure is designed to support
      content movement (aka cut-and-paste) more easily by allowing
      more than one paths to be taken from the same commit.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      cee7f245
  7. 10 10月, 2006 1 次提交
  8. 24 9月, 2006 1 次提交
  9. 18 9月, 2006 1 次提交
    • L
      Start handling references internally as a sorted in-memory list · e1e22e37
      Linus Torvalds 提交于
      This also adds some very rudimentary support for the notion of packed
      refs.  HOWEVER! At this point it isn't used to actually look up a ref
      yet, only for listing them (ie "for_each_ref()" and friends see the
      packed refs, but none of the other single-ref lookup routines).
      
      Note how we keep two separate lists: one for the loose refs, and one for
      the packed refs we read. That's so that we can easily keep the two apart,
      and read only one set or the other (and still always make sure that the
      loose refs take precedence).
      
      [ From this, it's not actually obvious why we'd keep the two separate
        lists, but it's important to have the packed refs on their own list
        later on, when I add support for looking up a single loose one.
      
        For that case, we will want to read _just_ the packed refs in case the
        single-ref lookup fails, yet we may end up needing the other list at
        some point in the future, so keeping them separated is important ]
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      e1e22e37
  10. 17 9月, 2006 1 次提交
  11. 16 9月, 2006 2 次提交
    • L
      Add "git show-ref" builtin command · 358ddb62
      Linus Torvalds 提交于
      It's kind of like "git peek-remote", but works only locally (and thus
      avoids the whole overhead of git_connect()) and has some extra
      verification features.
      
      For example, it allows you to filter the results, and to choose whether
      you want the tag dereferencing or not. You can also use it to just test
      whether a particular ref exists.
      
      For example:
      
      	git show-ref master
      
      will show all references called "master", whether tags or heads or
      anything else, and regardless of how deep in the reference naming
      hierarchy they are (so it would show "refs/heads/master" but also
      "refs/remote/other-repo/master").
      
      When using the "--verify" flag, the command requires an exact ref path:
      
      	git show-ref --verify refs/heads/master
      
      will only match the exact branch called "master".
      
      If nothing matches, show-ref will return an error code of 1, and in the
      case of verification, it will show an error message.
      
      For scripting, you can ask it to be quiet with the "--quiet" flag, which
      allows you to do things like
      
      	git-show-ref --quiet --verify -- "refs/heads/$headname" ||
      		echo "$headname is not a valid branch"
      
      to check whether a particular branch exists or not (notice how we don't
      actually want to show any results, and we want to use the full refname for
      it in order to not trigger the problem with ambiguous partial matches).
      
      To show only tags, or only proper branch heads, use "--tags" and/or
      "--heads" respectively (using both means that it shows tags _and_ heads,
      but not other random references under the refs/ subdirectory).
      
      To do automatic tag object dereferencing, use the "-d" or "--dereference"
      flag, so you can do
      
      	git show-ref --tags --dereference
      
      to get a listing of all tags together with what they dereference.
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      358ddb62
    • J
      Define fallback PATH_MAX on systems that do not define one in <limits.h> · d0c2449f
      Junio C Hamano 提交于
      Notably on GNU/Hurd, as reported by Gerrit Pape.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      d0c2449f
  12. 10 9月, 2006 2 次提交
    • F
      Add git-upload-archive · 39345a21
      Franck Bui-Huu 提交于
      This command implements the git archive protocol on the server
      side. This command is not intended to be used by the end user.
      Underlying git-archive command line options are sent over the
      protocol from "git-archive --remote=...", just like upload-tar
      currently does with "git-tar-tree=...".
      
      As for "git-archive" command implementation, this new command
      does not execute any existing "git-{tar,zip}-tree" but rely
      on the archive API defined by "git-archive" patch. Hence we
      get 2 good points:
      
       - "git-archive" and "git-upload-archive" share all option
         parsing code.
      
       - All kind of git-upload-{tar,zip} can be deprecated.
      Signed-off-by: NFranck Bui-Huu <vagabon.xyz@gmail.com>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      39345a21
    • F
      Add git-archive · 4df096a5
      Franck Bui-Huu 提交于
      git-archive is a command to make TAR and ZIP archives of a git tree.
      It helps prevent a proliferation of git-{format}-tree commands.
      
      Instead of directly calling git-{tar,zip}-tree command, it defines
      a very simple API, that archiver should implement and register in
      "git-archive.c". This API is made up by 2 functions whose prototype
      is defined in "archive.h" file.
      
       - The first one is used to parse 'extra' parameters which have
         signification only for the specific archiver. That would allow
         different archive backends to have different kind of options.
      
       - The second one is used to ask to an archive backend to build
         the archive given some already resolved parameters.
      
      The main reason for making this API is to avoid using
      git-{tar,zip}-tree commands, hence making them useless. Maybe it's
      time for them to die ?
      
      It also implements remote operations by defining a very simple
      protocol: it first sends the name of the specific uploader followed
      the repository name (git-upload-tar git://example.org/repo.git).
      Then it sends options. It's done by sending a sequence of one
      argument per packet, with prefix "argument ", followed by a flush.
      
      The remote protocol is implemented in "git-archive.c" for client
      side and is triggered by "--remote=<repo>" option. For example,
      to fetch a TAR archive in a remote repo, you can issue:
      
      $ git archive --format=tar --remote=git://xxx/yyy/zzz.git HEAD
      
      We choose to not make a new command "git-fetch-archive" for example,
      avoind one more GIT command which should be nice for users (less
      commands to remember, keeps existing --remote option).
      Signed-off-by: NFranck Bui-Huu <vagabon.xyz@gmail.com>
      Acked-by: NRene Scharfe <rene.scharfe@lsrfire.ath.cx>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      4df096a5
  13. 09 9月, 2006 1 次提交
  14. 27 8月, 2006 1 次提交
    • R
      Add git-zip-tree · e4fbbfe9
      Rene Scharfe 提交于
      In the Windows world ZIP files are better supported than tar files.
      Windows even includes built-in support for ZIP files nowadays.
      
      git-zip-tree is similar to git-tar-tree; it creates ZIP files out of
      git trees.  It stores the commit ID (if available) in a ZIP file comment
      which can be extracted by unzip.
      
      There's still quite some room for improvement: this initial version
      supports no symlinks, calls write() way too often (three times per file)
      and there is no unit test.
      
      [jc: with a minor typefix to avoid void* arithmetic]
      Signed-off-by: NRene Scharfe <rene.scharfe@lsrfire.ath.cx>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      e4fbbfe9
  15. 11 8月, 2006 1 次提交
  16. 04 8月, 2006 6 次提交
  17. 03 8月, 2006 2 次提交
  18. 02 8月, 2006 2 次提交
  19. 29 7月, 2006 1 次提交
  20. 27 7月, 2006 1 次提交
  21. 09 7月, 2006 1 次提交
    • L
      builtin "git prune" · ba84a797
      Linus Torvalds 提交于
      This actually removes the objects to be pruned, unless you specify "-n"
      (at which point it will just tell you which files it would prune).
      
      This doesn't do the pack-file pruning that the shell-script used to do,
      but if somebody really wants to, they could add it easily enough. I wonder
      how useful it is, though, considering that "git repack -a -d" is just a
      lot more efficient and generates a better end result.
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      ba84a797
  22. 04 7月, 2006 1 次提交
  23. 19 6月, 2006 6 次提交
  24. 11 6月, 2006 1 次提交
  25. 04 6月, 2006 1 次提交