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

Re: [PATCH 0/3] remote HEAD improvements

From
Jeff King <peff@peff.net>
Date
Feb 12, 2009, 00:17 UTC
Message-ID
<20090212001717.GA30231@coredump.intra.peff.net>
In-Reply-To
<1234332083-45147-1-git-send-email-jaysoffian@gmail.com>
On Wed, Feb 11, 2009 at 01:01:20AM -0500, Jay Soffian wrote:
Show 10 quoted lines
> 1) Teaches git remote a new "sethead" verb:
> 
>   To set a remote HEAD explicitly:
>   $ git remote sethead <name> <branch>
> 
>   To set a remote HEAD to match the upstream repo:
>   $ git remote sethead <name> -a
> 
>   To delete a remote HEAD:
>   $ git remote sethead <name> -d

I like these semantics a lot. I will do worse than bikeshed, though, and say that I don't like the color you painted it without even proposing a color of my own. Which is to say, I think "sethead" is not the best name. But I like it better than the alternatives I've seen, so maybe it is OK.

Perhaps it is just the run-together word that makes it worse. Something like "set-head" might be better (I guess I couldn't resist suggesting a color, after all).

I have a few comments, which I will post in reply to the individual patches.

-Peff
Previous: Daniel Barkalow
Message 17 of 17 in “remote HEAD improvements”
  1. 0/3 remote HEAD improvementsJay Soffian, Feb 11, 2009
  2. 1/3 builtin-remote: move duplicated cleanup code its own functionJay Soffian, Feb 11, 2009
  3. 2/3 builtin-remote: teach show to display remote HEADJay Soffian, Feb 11, 2009
  4. 3/3 builtin-remote: add sethead verbJay Soffian, Feb 11, 2009
  5. Jeff KingFeb 12, 2009
  6. Jay SoffianFeb 12, 2009
  7. Jeff KingFeb 12, 2009
  8. Daniel BarkalowFeb 12, 2009
  9. Junio C HamanoFeb 12, 2009
  10. Daniel BarkalowFeb 12, 2009
  11. Jay SoffianFeb 12, 2009
  12. Daniel BarkalowFeb 12, 2009
  13. Jeff KingFeb 12, 2009
  14. Jay SoffianFeb 12, 2009
  15. Jeff KingFeb 12, 2009
  16. Daniel BarkalowFeb 12, 2009
  17. Jeff KingFeb 12, 2009

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.