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

Re: [PATCH] cg-pull to stop treating "master" specially, fix fetch_local for .git/HEAD

From
Petr Baudis <pasky@suse.cz>
Date
Nov 10, 2005, 19:24 UTC
Message-ID
<20051110192430.GS30496@pasky.or.cz>
In-Reply-To
<1124832796.23795.9.camel@dv>
  Hello,

Dear diary, on Tue, Aug 23, 2005 at 11:33:16PM CEST, I got a letter where Pavel Roskin <proski@gnu.org> said that...

Show 16 quoted lines
> Local URL handling needs to be fixed to handle .git/HEAD properly, since
> it's a symlink in the upstream directory.  A new flag "-b" for fetch_*
> functions is introduced, meaning "dereference" (like in GNU cp).
> 
> @@ -205,6 +209,11 @@ fetch_local()
>  	[ "$1" = "-s" ] && shift
>  
>  	cp_flags_l="-vdpR"
> +	if [ "$1" = "-b" ]; then
> +		cp_flags_l="-vb" # Dereference symlinks
> +		shift
> +	fi
> +
>  	if [ "$1" = "-u" ]; then
>  		cp_flags_l="$cp_flags_l -fu$can_hardlink"
>  		suggest_hardlink=
  can you still remember why did you introduce this? In GNU cp
documentation, I can see just
       -b, --backup
              Make backups of files that are about to be overwritten or removed.
which doesn't make sense to me - -L dereferences symlinks.
-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
VI has two modes: the one in which it beeps and the one in which
it doesn't.
Previous: Pavel RoskinNext: Pavel Roskin
Message 2 of 13 in “cg-pull to stop treating "master" specially, fix fetch_local for .git/HEAD”
  1. cg-pull to stop treating "master" specially, fix fetch_local for .git/HEADPavel Roskin, Aug 23, 2005
  2. Petr BaudisNov 10, 2005
  3. Pavel RoskinNov 10, 2005
  4. Josef WeidendorferNov 10, 2005
  5. Petr BaudisNov 10, 2005
  6. Josef WeidendorferNov 10, 2005
  7. Petr BaudisNov 11, 2005
  8. Pavel RoskinNov 11, 2005
  9. Josef WeidendorferNov 11, 2005
  10. Pavel RoskinNov 11, 2005
  11. Josef WeidendorferNov 11, 2005
  12. Pavel RoskinNov 11, 2005
  13. Josef WeidendorferNov 11, 2005

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.