1. 03 8月, 2005 2 次提交
  2. 02 8月, 2005 1 次提交
    • J
      GIT 0.99.3 · 541ad6e2
      Junio C Hamano 提交于
      Things have slowly but surely started to settle down, and the
      http transport finally can natively grok packed repositories.
      To give Pasky a good anchor point, hoping that he can start
      split off the core part from Cogito, here is the 0.99.3, which
      will be accompanied with its own tag.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      541ad6e2
  3. 01 8月, 2005 4 次提交
    • J
      Retire git-fetch-dumb-http and missing-revs · 0f2b4c46
      Junio C Hamano 提交于
      Now git-http-pull knows how to do packed repo, retire scripted
      hacks I placed as a stop-gap measure.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      0f2b4c46
    • J
      [PATCH] Added hook in git-receive-pack · b1bf95bb
      Josef Weidendorfer 提交于
      Just before updating a ref,
      
          $GIT_DIR/hooks/update refname old-sha1 new-sha1
      
      is called if executable.  The hook can decline the ref to be
      updated by exiting with a non-zero status, or allow it to be
      updated by exiting with a zero status.  The mechanism also
      allows e.g sending of a mail with pushed commits on the remote
      repository.
      
      Documentation update with an example hook is included.
      
      jc: The credits of the basic idea and initial implementation go
      to Josef, but I ended up rewriting major parts of his patch, so
      bugs are all mine.  Also I changed the semantics for the hook
      from his original version (which were post-update hook) so that
      the hook can optionally decline to update the ref, and also can
      be used to implement the overall cleanups.  The latter was
      primarily to implement a suggestion from Linus that calling
      update-server-info should be made optional.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      b1bf95bb
    • J
      Add a stupid "count objects" script. · 60036a41
      Junio C Hamano 提交于
      This counts the number of unpacked object files and disk space
      consumed by them, to help you decide when it is a good time to
      repack.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      60036a41
    • J
      Fetch from a packed repository on dumb servers. · 96155e55
      Junio C Hamano 提交于
      Implement fetching from a packed repository over http/https
      using the dumb server support files.
      
      I consider some parts of the logic should be in a separate C
      program, but it appears to work with my simple tests.  I have
      backburnered it for a bit too long for my liking, so let's throw
      it out in the open and see what happens.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      96155e55
  4. 31 7月, 2005 3 次提交
    • J
      [PATCH] add NO_CURL option to the Makefile · b2c0bd65
      Johannes Schindelin 提交于
      This patch implements Linus' idea that if you are not interested in
      pulling by HTTP, you can now say
      
      	NO_CURL=1 make
      
      to compile everything except git-http-pull (thus not needing curl at all).
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      b2c0bd65
    • L
      [PATCH] Making it easier to find which change introduced a bug · 8cc6a083
      Linus Torvalds 提交于
      This adds a new "git bisect" command.
      
       - "git bisect start"
      	start bisection search.
      
       - "git bisect bad <rev>"
      	mark some version known-bad (if no arguments, then current HEAD)
      
       - "git bisect good <revs>..."
      	mark some versions known-good (if no arguments, then current HEAD)
      
       - "git bisect reset <branch>"
      	done with bisection search and go back to your work (if
      	no arguments, then "master").
      
      The way you use it is:
      
      	git bisect start
      	git bisect bad			# Current version is bad
      	git bisect good v2.6.13-rc2	# v2.6.13-rc2 was the last version
      					# tested that was good
      
      When you give at least one bad and one good versions, it will
      bisect the revision tree and say something like:
      
      	Bisecting: 675 revisions left to test after this
      
      and check out the state in the middle. Now, compile that kernel, and boot
      it. Now, let's say that this booted kernel works fine, then just do
      
      	git bisect good			# this one is good
      
      which will now say
      
      	Bisecting: 337 revisions left to test after this
      
      and you continue along, compiling that one, testing it, and depending on
      whether it is good or bad, you say "git bisect good" or "git bisect bad",
      and ask for the next bisection.
      
      Until you have no more left, and you'll have been left with the first bad
      kernel rev in "refs/bisect/bad".
      
      Oh, and then after you want to reset to the original head, do a
      
      	git bisect reset
      
      to get back to the master branch, instead of being in one of the bisection
      branches ("git bisect start" will do that for you too, actually: it will
      reset the bisection state, and before it does that it checks that you're
      not using some old bisection branch).
      
      Not really any harder than doing series of "quilt push" and "quilt pop",
      now is it?
      
      [jc: This patch is a rework based on what Linus posted to the
           list.  The changes are:
      
        - The original introduced four separate commands, which was
          three too many, so I merged them into one with subcommands.
          
        - Since the next thing you would want to do after telling it
          "bad" and "good" is always to bisect, this version does it
          automatically for you.
      
        - I think the termination condition was wrong.  The original
          version checked if the set of revisions reachable from next
          bisection but not rechable from any of the known good ones
          is empty, but if the current bisection was a bad one, this
          would not terminate, so I changed it to terminate it when
          the set becomes a singleton or empty.
      
        - Removed the use of shell array variable.
      
      ]
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      8cc6a083
    • J
      NO_OPENSSL should really mean no openssl. · 9e95049b
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      9e95049b
  5. 30 7月, 2005 6 次提交
  6. 29 7月, 2005 1 次提交
  7. 28 7月, 2005 1 次提交
  8. 27 7月, 2005 1 次提交
  9. 24 7月, 2005 5 次提交
    • L
      Add a "git rename" to help with - surprise surprise - renames · 399144f2
      Linus Torvalds 提交于
      It's stupid.  We'd want to rename directories too, but this doesn't do
      that yet - easy enough to do per se, we just need to carefully list all
      the pathnames that got moved (and remember to ignore the files that
      weren't tracked but are in the subdirectory that got moved).
      
      Doing the directory case will require a bit more scripting.. Something like
      
      	oldfiles=($(git-ls-files | grep '^$src'))
      	newfiles=($(git-ls-files | sed ':^$src: s:^$src:$dst:'))
      	mv $src $dst && git-update-cache --add --remove -- "${oldfiles[@]}" "${newfiles[@]}"
      
      might do it, except it needs to be done right, and carefully.  Methinks
      perl is probably better at this. Hint hint..
      399144f2
    • J
      [PATCH] Support cloning packed repo from dumb http servers. · c0a58fbb
      Junio C Hamano 提交于
      Using the information prepared with update-server-info, a truly
      dumb http server can allow cloning with this client side
      support.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      c0a58fbb
    • J
      [PATCH] Add update-server-info. · 8f3f9b09
      Junio C Hamano 提交于
      The git-update-server-info command prepares informational files
      to help clients discover the contents of a repository, and pull
      from it via a dumb transport protocols.  Currently, the
      following files are produced.
      
       - The $repo/info/refs file lists the name of heads and tags
         available in the $repo/refs/ directory, along with their
         SHA1.  This can be used by git-ls-remote command running on
         the client side.
      
       - The $repo/info/rev-cache file describes the commit ancestry
         reachable from references in the $repo/refs/ directory.  This
         file is in an append-only binary format to make the server
         side friendly to rsync mirroring scheme, and can be read by
         git-show-rev-cache command.
      
       - The $repo/objects/info/pack file lists the name of the packs
         available, the interdependencies among them, and the head
         commits and tags contained in them.  Along with the other two
         files, this is designed to help clients to make smart pull
         decisions.
      
      The git-receive-pack command is changed to invoke it at the end,
      so just after a push to a public repository finishes via "git
      push", the server info is automatically updated.
      
      In addition, building of the rev-cache file can be done by a
      standalone git-build-rev-cache command separately.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      8f3f9b09
    • J
      [PATCH] git-ls-remote: show and optionally store remote refs. · 0fec0822
      Junio C Hamano 提交于
      Retrieve and list the remote refs from git, http, and rsync
      repositories, and optionally stores the retrieved refs in the
      local repository under the same name.
      
      To access a git URL, git-peek-remote command is used.  An http
      URL needs to have an up-to-date info/refs file for discovery,
      which will be introduced by a later update-server-info patch.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      0fec0822
    • J
      [PATCH] git-peek-remote: show tags and heads from a remote repository. · 18705953
      Junio C Hamano 提交于
      Add a git-peek-remote command that talks with upload-pack the
      same way git-fetch-pack and git-clone-pack do, to show the
      references the remote side has on the standard output.
      
      A later patch introduces git-ls-remote that implements a UI to
      store tag values retrieved using this command.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      18705953
  10. 23 7月, 2005 2 次提交
  11. 17 7月, 2005 2 次提交
    • L
      Prepare git-tools for merging into the main git archive · c5f7674a
      Linus Torvalds 提交于
      Rename into a "tools" subdirectory, and change name of "dotest" to "applymbox".
      
      Remove stripspace (which was already copied into git) and cvs2git (which
      was likewise already copied into git, and then replaced by a much better
      perl version).
      
      All of this was brought on by Ryan Anderson shaming me into it.  Thanks.
      I guess.
      c5f7674a
    • J
      [PATCH] fetch/pull: short-hand notation for remote repositories. · f170e4b3
      Junio C Hamano 提交于
      Since pull and fetch are done often against the same remote
      repository repeatedly, keeping the URL to pull from along with
      the name of the head to use in $GIT_DIR/branches/$name makes a
      lot of sense.  Adopt that convention from Cogito, and try to be
      compatible when possible; storing a partial URL and completing
      it with a trailing path may not be understood by Cogito.
      
      While we are at it, fix pulling a tag.  Earlier, we updated only
      refs/tags/$tag without updating FETCH_HEAD, and called
      resolve-script using a stale (or absent) FETCH_HEAD.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      f170e4b3
  12. 16 7月, 2005 5 次提交
  13. 14 7月, 2005 1 次提交
  14. 13 7月, 2005 3 次提交
  15. 12 7月, 2005 2 次提交
    • L
      Add "git branch" script · 37f1a519
      Linus Torvalds 提交于
      You can use it as
      
      	git branch <branchname> [start-point]
      
      and it creates a new branch of name <branchname>.  If a starting point
      is specified, that will be where the branch is created, otherwise it
      will be created at the current HEAD.
      
      The sequence
      
      	git branch xyz abc
      	git checkout xyz
      
      can also be written as
      
      	git checkout -b xyz abc
      
      as per the previous commit.
      37f1a519
    • C
      [PATCH] Bootstrap "make dist" · b1de9de2
      Chris Wright 提交于
      Use git-tar-tree directly from git source during make dist.  This
      handles bootstrap issue with git not being installed.
      Signed-off-by: NChris Wright <chrisw@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      b1de9de2
  16. 09 7月, 2005 1 次提交