1. 01 8月, 2005 7 次提交
    • 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
    • B
      [PATCH] Fix support for old libcurl · 9f6cf65e
      barkalow@iabervon.org 提交于
      Old libcurl has curl_easy_setopt(), and http-pull requires it; it just
      doesn't have one of the options.
      Signed-off-by: NDaniel Barkalow <barkalow@iabervon.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      9f6cf65e
    • J
      Fix typo in recent Makefile cleanup (again). · a52b41b2
      Junio C Hamano 提交于
      Another instance of $(bin) was missed when it was renamed to
      $(bindir).
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      a52b41b2
    • J
      Teach parse_commit_buffer about grafting. · 5da5c8f4
      Junio C Hamano 提交于
      Introduce a new file $GIT_DIR/info/grafts (or $GIT_GRAFT_FILE)
      which is a list of "fake commit parent records".  Each line of
      this file is a commit ID, followed by parent commit IDs, all
      40-byte hex SHA1 separated by a single SP in between.  The
      records override the parent information we would normally read
      from the commit objects, allowing both adding "fake" parents
      (i.e. grafting), and pretending as if a commit is not a child of
      some of its real parents (i.e. cauterizing).
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      5da5c8f4
    • 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
    • J
      Merge with gitk. · 80bd6f30
      Junio C Hamano 提交于
      80bd6f30
  2. 31 7月, 2005 5 次提交
    • P
      Fix some bugs causing application error popups. · 1115fb38
      Paul Mackerras 提交于
      Specifically this should fix the following errors:
      
      wrong # args: should be "startdiff ids" (fix from Junio Hamano)
      can't read "filelines(....)": no such element in array
      can't unset "treepending": no such variable
      1115fb38
    • 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
      Fix merge-base from getting confused. · 4f7eb2e5
      Linus Torvalds 提交于
      On Sat, 30 Jul 2005, Linus Torvalds wrote:
      > 
      > Yup, it's git-merge-base, and it is confused by the same thing that 
      > confused git-rev-list.
      
      Hmm.. Here's a tentative fix. I'm not really happy with it, and maybe
      somebody else can come up with a better one. I think this one ends up
      being quite a bit more expensive than the old one (it will look up _all_
      common parents that have a child that isn't common, and then select the
      newest one of the bunch), but I haven't really thought it through very
      much.
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      4f7eb2e5
    • 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
  3. 30 7月, 2005 17 次提交
  4. 29 7月, 2005 6 次提交
  5. 28 7月, 2005 5 次提交