git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 0/4] Build in some more things

From
Daniel Barkalow <barkalow@iabervon.org>
Date
Oct 30, 2007, 16:37 UTC
Message-ID
<Pine.LNX.4.64.0710301147310.7357@iabervon.org>
In-Reply-To
<7vzly1nhmn.fsf@gitster.siamese.dyndns.org>
On Tue, 30 Oct 2007, Junio C Hamano wrote:
> I've merged this to 'pu', but honestly speaking, the conflicts
> are geting a bit more "interesting" than I care to keep
> repeating even with help from rerere, with four people
> simultaneously touching the neighbouring code in their topics.

I mostly actually care about [PATCH 1/4] which is also probably the easiest to validate (since it really shouldn't change anything that matters except to make things work in more cases). If I could get that in early, I'd be fine with pushing the rest off until other people are out of that code. The reason I care about 1/4 is that it also sets up an extensive patch to make the fetch side of transport use the same git connection for getting the initial list of remote refs and for fetching their content (still with a second connection for auto-following tags, since I couldn't figure out how to request more content after examining some fetched content); this patch miraculously doesn't seem to significantly conflict with anything currently in pu, and actually provides a user-visible benefit (ssh transport with no special infrastructure doesn't require typing the password multiple times for a single logical operation most of the time).

On the other hand, [PATCH 2/4] might be worth floating earlier in pu, since its conflicts are to simply remove all of the code that the other patches update (since that code duplicates code in transport.c that can be used instead).

For the builtin-send-pack stuff, I might as well redo the same logical changes to the code once it settles down, since the edit sequence for 3/4 is really not all that well represented by diff, being very nearly "rename a bunch of static globals; mark a bunch of things const; move a function call down; split a function in half", and I can just redo that after all the other changes.

Show 27 quoted lines
> Topics involved are:
> 
> ** db/remote-builtin (Mon Oct 29 22:03:42 2007 -0400) 4 commits
>  . Use built-in send-pack.
>  . Build-in send-pack, with an API for other programs to call.
>  . Build-in peek-remote, using transport infrastructure.
>  . Miscellaneous const changes and utilities
> 
> *  jk/send-pack (Thu Oct 18 02:17:46 2007 -0400) 2 commits
>  + t5516: test update of local refs on push
>  + send-pack: don't update tracking refs on error
> 
> *  js/forkexec (Fri Oct 19 21:48:06 2007 +0200)
>  + Use start_command() in git_connect() instead of explicit
>    fork/exec.
>  + Change git_connect() to return a struct child_process instead of a
>    pid_t.
> 
> ** sp/push-refspec (Sun Oct 28 18:46:21 2007 +0100)
>  . push: teach push to pass --verbose option to transport layer
>  . push: use same rules as git-rev-parse to resolve refspecs
>  . add ref_abbrev_matches_full_with_rev_parse_rules() comparing
>    abbrev with full ref name
>  . rename ref_matches_abbrev() to
>    ref_abbrev_matches_full_with_fetch_rules()
> 
> Could you please check the result after I push it out?

I agree with all of the conflict resolutions, although I didn't make sure that parts that didn't get conflicts merged correctly (but, if it builds, it's almost certainly right).

	-Daniel
*This .sig left intentionally blank*
Previous: Junio C Hamano
Message 5 of 5 in “Build in some more things”
  1. 0/4 Build in some more thingsDaniel Barkalow, Oct 30, 2007
  2. Johannes SixtOct 30, 2007
  3. Daniel BarkalowOct 30, 2007
  4. Junio C HamanoOct 30, 2007
  5. Daniel BarkalowOct 30, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.