Skip to content

A bit better dumb server support

Junio C Hamano git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6show-diff.c: clean up private buffer use.show-diff.c+6 -160 replies
1/6git-peek-remote: show tags and heads from a remote repository.Makefile peek-remote.c+57 -10 replies
1/6blame.c: whitespace and formatting clean-up.blame.c+100 -1000 replies
1/6Allow in_merge_bases() to take more than one reference commits.builtin-branch.c builtin-reflog.c commit.c +1 more+10 -70 replies
2/6show-diff.c: check unreadbale blob.show-diff.c+10 -10 replies
2/6Documentation: git-peek-remote.Documentation/git-peek-remote.txt Documentation/git.txt+59 -30 replies
2/6git-blame: --show-name (and -f)blame.c+9 -50 replies
2/6merge_base(): move traversal into a separate function.commit.c+22 -160 replies
3/6show-diff.c: simplify show_diff_empty.show-diff.c+10 -340 replies
3/6git-ls-remote: show and optionally store remote refs.Makefile git-ls-remote-script+106 -10 replies
3/6git-blame: --show-number (and -n)blame.c+38 -40 replies
3/6git-merge-base: --check-ancestry optionDocumentation/git-merge-base.txt merge-base.c+49 -30 replies
4/6show-diff.c: adjust default format for the Linux kernel.show-diff.c+4 -30 replies
4/6Add update-server-info.Makefile build-rev-cache.c cache.h +6 more+1025 -10 replies
4/6in_merge_bases(): optimizationcommit.c+34 -140 replies
5/6show-diff.c: make diff options customizable.show-diff.c+25 -40 replies
5/6Document update-server-info.Documentation/git-update-server-info.txt Documentation/git.txt+46 -00 replies
5/6git-blame --porcelainblame.c+127 -222 replies
5/6Make merge-base a built-in.Makefile builtin-merge-base.c builtin.h +2 more+90 -892 replies
6/6show-diff.c: -R option for reverse diff.show-diff.c+13 -70 replies
6/6Support cloning packed repo from dumb http servers.Makefile git-clone-dumb-http git-clone-script+63 -30 replies
6/6gitweb: use blame --porcelaingitweb/gitweb.perl+44 -212 replies
6/6Teach "git-merge-base --check-ancestry" about refs.Documentation/git-merge-base.txt builtin-merge-base.c+44 -70 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/6] Expose in_merge_bases() via merge-base.
Quoted 11 lines · Junio C Hamano
Quoted 8 lines · Shawn O. Pearce

The common case is probably going to be where the argument to git checkout is a fast-foward of the detached HEAD. And that's pretty cheap to check. So we perform that check, and if we fail that then we search through every ref to determine if the detached HEAD is fully contained in any of those. Currently that would be pretty slow to do with the current tools, but a small modification of say git-merge-base (or git-describe) might make it cheap enough to run during this slightly less common case.

Quoted 2 lines

The needed change to merge-base is quite minimum. Let me come up with a patch...

[PATCH 1/6] Allow in_merge_bases() to take more than one reference commits. [PATCH 2/6] merge_base(): move traversal into a separate function. [PATCH 3/6] git-merge-base: --check-ancestry option
[PATCH 4/6] in_merge_bases(): optimization
[PATCH 5/6] Make merge-base a built-in.
[PATCH 6/6] Teach "git-merge-base --check-ancestry" about refs.