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

Re: [PATCH] git-fetch, git-parse-remote: Cleanup implementation of '.'

From
Junio C Hamano <junkio@cox.net>
Date
Mar 16, 2007, 09:32 UTC
Message-ID
<7vps79v8ik.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<45FA5771.1040200@lu.unisi.ch>
Paolo Bonzini <paolo.bonzini@lu.unisi.ch> writes:
Show 5 quoted lines
> 	The patch is a cleanup of the one you posted, and it was
> 	appropriately tested with no regression.
>
> 	I can see now what you meant by the split between fetch and
> 	merge logic making my patch more complicated than necessary.
Thanks.  I'll squash the two and apply.
> +	builtin)
> +	        canon_refs_list_for_fetch -d "$1" \
> +			$(git-show-ref | sed -n 's,.*[      ]\(refs/.*\),\1:,p') ;;

I may not be really thinking straight tonight (no I am not drunk, but just a tad sick), but I wonder if this is sufficient?

	$(git-for-each-ref --format='%(refname):')
Shorter and one less process and pipe.
Previous: Paolo BonziniNext: Paolo Bonzini
Message 4 of 6 in “git-fetch, git-branch: Support local --track via a special remote `.'”
  1. git-fetch, git-branch: Support local --track via a special remote `.'Paolo Bonzini, Mar 15, 2007
  2. Junio C HamanoMar 16, 2007
  3. git-fetch, git-parse-remote: Cleanup implementation of '.'Paolo Bonzini, Mar 16, 2007
  4. Junio C HamanoMar 16, 2007
  5. Paolo BonziniMar 16, 2007
  6. Junio C HamanoMar 16, 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.