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

Re: What's cooking in git.git (May 2013, #05; Mon, 20)

From
Johan Herland <johan@herland.net>
Date
May 22, 2013, 07:49 UTC
Message-ID
<CALKQrge33R9NiQ6isy4xEFaPe7SUmRaDbrXsjPahjtGp9ELG9Q@mail.gmail.com>
In-Reply-To
<7vtxlwqrbg.fsf@alter.siamese.dyndns.org>
On Tue, May 21, 2013 at 5:35 PM, Junio C Hamano <gitster@pobox.com> wrote:
Show 37 quoted lines
> Johan Herland <johan@herland.net> writes:
>> On Tue, May 21, 2013 at 2:15 AM, Junio C Hamano <gitster@pobox.com> wrote:
>>> * jh/shorten-refname (2013-05-07) 4 commits
>>>  - t1514: refname shortening is done after dereferencing symbolic refs
>>>  - shorten_unambiguous_ref(): Fix shortening refs/remotes/origin/HEAD to origin
>>>  - t1514: Demonstrate failure to correctly shorten "refs/remotes/origin/HEAD"
>>>  - t1514: Add tests of shortening refnames in strict/loose mode
>>>
>>>  When remotes/origin/HEAD is not a symbolic ref, "rev-parse
>>>  --abbrev-ref remotes/origin/HEAD" ought to show "origin", not
>>>  "origin/HEAD", which is fixed with this series (if it is a symbolic
>>>  ref that points at remotes/origin/something, then it should show
>>>  "origin/something" and it already does).
>>>
>>>  I think this is being rerolled using strbuf_expand().
>>
>> Actually, that was not on my TODO. Sure, my other series ([PATCHv2
>> 00/10] Prepare for alternative remote-tracking branch location) builds
>> on top of this one, and changes a lot of the same code, but I
>> considered jh/shorten-refname a good set of changes in its own right,
>> and I didn't want it to be held up by the much longer (and probably
>> much longer-running) series.
>
> On the other hand, this itself is fixing the case nobody encounters
> in real life, and in that sense it is not urgent at all even though
> it may be a correct fix, no?  When was the last time you saw a
> refs/remotes/*/HEAD that is not a symbolic ref?
>
> If it makes it is easier for you to work on the follow-on series to
> have this shorter one already cast in stone, I do not mind merging
> this early post 1.8.3 cycle at all.  If on the other hand you are
> hit by a realization that this part could be done in a different and
> a better way (I am not saying that that is the likely outcome) when
> you will look at redoing the follow-on series using strbuf_expand
> post 1.8.3, we would regret it if we cast this part in stone too
> early.  I think we can go either way, and the above "I think this is
> being rerolld" was primarily keeping the options open.

You're right. No point in setting things prematurely in stone. I'll fold jh/shorten-refname into the ongoing series.

...Johan
-- 
Johan Herland, <johan@herland.net>
www.herland.net
Previous: Junio C HamanoNext: Junio C Hamano
Message 5 of 19 in “What's cooking in git.git (May 2013, #05; Mon, 20)”
  1. Junio C HamanoMay 21, 2013
  2. Felipe ContrerasMay 21, 2013
  3. Johan HerlandMay 21, 2013
  4. Junio C HamanoMay 21, 2013
  5. Johan HerlandMay 22, 2013
  6. Junio C HamanoJul 1, 2013
  7. Johan HerlandJul 2, 2013
  8. Thomas RastMay 21, 2013
  9. Junio C HamanoMay 21, 2013
  10. Jeff KingMay 29, 2013
  11. activate color.ui by default (Re: What's cooking in git.git (May 2013, #05; Mon, 20))Matthieu Moy, May 21, 2013
  12. Junio C HamanoMay 21, 2013
  13. Michael J GruberMay 22, 2013
  14. Michael J GruberMay 22, 2013
  15. Junio C HamanoMay 22, 2013
  16. Michael J GruberMay 23, 2013
  17. Junio C HamanoMay 23, 2013
  18. Michael J GruberMay 23, 2013
  19. Junio C HamanoMay 23, 2013

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.