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

Re: [PATCH 2/2] checkout: fix attribute handling in checkout all

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 13, 2007, 20:12 UTC
Message-ID
<7vtzr3fb26.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<86eji7lww5.fsf@lola.quinscape.zz>
David Kastrup <dak@gnu.org> writes:
Show 9 quoted lines
>> Junio C Hamano <gitster@pobox.com> writes:
>>
>>     $ git update-ref --no-deref HEAD $(git rev-parse v1.5.3-rc4^0)
>
> Is there a fundamental difference to using
>
> git-symbolic-ref HEAD $(git rev-parse v1.5.3-rc4^0)
>
> here?

The symbolic-ref command is about setting the HEAD to "point at a(nother) ref". There is no point talking about "fundamental difference" here --- the latter is plain wrong, feeding rev-parse output (which is an object name) as its second parameter.

Did you mean to ask about the difference between "git-update-ref HEAD $param" with or without --no-deref?

With --no-deref, it makes the HEAD detached even when HEAD is a symref that points at a ref, e.g. "refs/heads/master". Without that option, it updates the ref that is pointed at by the HEAD symref.

Previous: David KastrupNext: Brian Downing
Message 19 of 20 in “attr: fix attribute handling if .gitattributes is involved”
  1. 1/2 attr: fix attribute handling if .gitattributes is involvedSteffen Prohaska, Aug 12, 2007
  2. 2/2 checkout: fix attribute handling in checkout allSteffen Prohaska, Aug 12, 2007
  3. Junio C HamanoAug 12, 2007
  4. Steffen ProhaskaAug 12, 2007
  5. Junio C HamanoAug 13, 2007
  6. Marius Storm-OlsenAug 13, 2007
  7. Steffen ProhaskaAug 13, 2007
  8. Marius Storm-OlsenAug 13, 2007
  9. Steffen ProhaskaAug 13, 2007
  10. Marius Storm-OlsenAug 13, 2007
  11. Steffen ProhaskaAug 13, 2007
  12. Dmitry KakurinAug 13, 2007
  13. 1/2 attr.c: refactoringJunio C Hamano, Aug 14, 2007
  14. 2/2 attr.c: read .gitattributes from index as well.Junio C Hamano, Aug 14, 2007
  15. Steffen ProhaskaAug 13, 2007
  16. Johannes SchindelinAug 13, 2007
  17. David KastrupAug 13, 2007
  18. git-update-ref bug? (was: [PATCH 2/2] checkout: fix attribute handling in checkout all)David Kastrup, Aug 13, 2007
  19. Junio C HamanoAug 13, 2007
  20. Brian DowningAug 13, 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.