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

Re: [PATCH] Use "hash1..hash2" instead of "from hash1 to hash2"

From
Junio C Hamano <junkio@cox.net>
Date
Sep 29, 2006, 02:28 UTC
Message-ID
<7v7iznquc4.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<877iznbq0v.fsf@gmail.com>

This kind of "appearance only" change needs better justification. Not that I am saying "from .. to" is better for such and such reasons, but that's how it's been, so if you are proposing to change it, you need to defend why it would help users (otherwise I would get hate mails that say "why did you merge it -- it broke my work habit in such and such way").

You may be doing this for brevity. In that case, it could also be worth shortening them to n unique digits; do we have a command to get "here is the SHA-1; give me its unique abbreviation at least n letters long but make it longer as needed to keep it unique"?

You may be doing this to help Cut & Paste. Using A..B without spaces in between makes it easy to grab both at the same time as a range to give them to "git log". At the same time it makes it harder to pick only A or B, so this is two-edged.

Previous: Santi BéjarNext: Carl Worth
Message 2 of 3 in “Use "hash1..hash2" instead of "from hash1 to hash2"”
  1. Use "hash1..hash2" instead of "from hash1 to hash2"Santi Béjar, Sep 28, 2006
  2. Junio C HamanoSep 29, 2006
  3. Carl WorthSep 29, 2006

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.