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

Re: [PATCH 3/3] Teach git-branch -v and -w options

From
Junio C Hamano <junkio@cox.net>
Date
Oct 22, 2006, 19:35 UTC
Message-ID
<7vmz7o5eki.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<11615166273819-git-send-email-hjemli@gmail.com>
Lars Hjemli <hjemli@gmail.com> writes:
Show 7 quoted lines
> This makes git-branch display sha1 and first line of commit
> message for each branch.
>
> Additionaly, the -w option may be used to specify columnwidth
> for branchname (default is 20 characters)
>
> Signed-off-by: Lars Hjemli <hjemli@gmail.com>

If you are going in this direction, probably you would want to refactor 2/3 a bit differently, so that you do not have to duplicate the same printf for local and remote cases?

Previous: Lars HjemliNext: Lars Hjemli
Message 5 of 7 in “Add -v and -w options to git-branch”
  1. 0/3 Add -v and -w options to git-branchLars Hjemli, Oct 22, 2006
  2. 1/3 Fix usagestring for git-branchLars Hjemli, Oct 22, 2006
  3. 2/3 Refactor git-branchLars Hjemli, Oct 22, 2006
  4. 3/3 Teach git-branch -v and -w optionsLars Hjemli, Oct 22, 2006
  5. Junio C HamanoOct 22, 2006
  6. Lars HjemliOct 22, 2006
  7. Lars HjemliOct 22, 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.