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

Re: [RFC/PATCH] git-fetch: mega-terse fetch output

From
SBSanti Béjar <sbejar@gmail.com>
Date
Oct 19, 2007, 14:31 UTC
Message-ID
<8aa486160710190731v67626fd8wa94ba069a17f73ce@mail.gmail.com>
In-Reply-To
<alpine.LFD.0.9999.0710191009330.19446@xanadu.home>
On 10/19/07, Nicolas Pitre <nico@cam.org> wrote:
Show 29 quoted lines
> On Fri, 19 Oct 2007, Johannes Sixt wrote:
>
> > Theodore Tso schrieb:
> > > ==> git://repo.or.cz/git/spearce.git
> > >  * branch gitk -> spearce/gitk              (new)
> > >  * branch maint -> spearce/maint    1aa3d01..e7187e4
> > >  * branch master -> spearce/master  de61e42..7840ce6
> > >  * branch next -> spearce/next              895be02..2fe5433
> > >  + branch pu -> spearce/pu          89fa332...1e4c517
> > >  * branch todo -> spearce/todo              (new)
> >
> > > As far as the padding, it would be a pain to figure out how to make
> > > the right hand column be padded so that it starts 3 spaces after the
> > > longest "  * branch foo -> bar" line, but that would look the best.
> >
> > But this way it wouldn't be difficult at all:
> >
> > ==> git://repo.or.cz/git/spearce.git
> >  * (new)              gitk -> spearce/gitk
> >  * 1aa3d01..e7187e4   maint -> spearce/maint
> >  * de61e42..7840ce6   master -> spearce/master
> >  * 895be02..2fe5433   next -> spearce/next
> >  + 89fa332...1e4c517  pu -> spearce/pu
> >  * (new)              todo -> spearce/todo
>
> Actually I think this is the best format so far: one line per branch, no
> terminal width issue (long branch names are simply wrapped), the
> old..new info is there also with the single character marker to quickly
> notice the type of update.

I like it too. I would like to add some more descripton, because I think for newbies the .. and ... can be overlooked. Something like:

$ git fetch spearce
...
URL: git://repo.or.cz/git/spearce.git
 * (new)              spearce/gitk: new branch 'gitk'
 * 1aa3d01..e7187e4   spearce/maint: fast forward to branch 'maint'
 * de61e42..7840ce6   spearce/master: fast forward to branch 'master'
 * 895be02..2fe5433   spearce/next: fast forward to branch 'next'
 + 89fa332...1e4c517  spearce/pu: forcing update to non-fast forward branch 'pu'
 * (new)              spearce/todo: new branch spearce/todo
I would also put 'URL:' instead '==>'.
Santi
Previous: Johannes SchindelinNext: Karl Hasselström
Message 14 of 40 in “git-fetch: mega-terse fetch output”
  1. git-fetch: mega-terse fetch outputJeff King, Oct 19, 2007
  2. David SymondsOct 19, 2007
  3. Jeff KingOct 19, 2007
  4. Shawn O. PearceOct 19, 2007
  5. Jeff KingOct 19, 2007
  6. Shawn O. PearceOct 19, 2007
  7. Jeff KingOct 19, 2007
  8. Johannes SixtOct 19, 2007
  9. Santi BéjarOct 19, 2007
  10. Theodore TsoOct 19, 2007
  11. Johannes SixtOct 19, 2007
  12. Nicolas PitreOct 19, 2007
  13. Johannes SchindelinOct 19, 2007
  14. Santi BéjarOct 19, 2007
  15. Karl HasselströmOct 19, 2007
  16. Johannes SixtOct 19, 2007
  17. Nicolas PitreOct 19, 2007
  18. Johannes SchindelinOct 19, 2007
  19. Nicolas PitreOct 19, 2007
  20. Nicolas PitreOct 19, 2007
  21. Jeff KingOct 20, 2007
  22. Shawn O. PearceOct 20, 2007
  23. Karl HasselströmOct 19, 2007
  24. Nicolas PitreOct 19, 2007
  25. Theodore TsoOct 19, 2007
  26. Nicolas PitreOct 19, 2007
  27. Theodore TsoOct 19, 2007
  28. Nicolas PitreOct 19, 2007
  29. Miles BaderOct 23, 2007
  30. Andreas EricssonOct 19, 2007
  31. Andreas EricssonOct 19, 2007
  32. Nicolas PitreOct 19, 2007
  33. Steven GrimmOct 19, 2007
  34. Steven GrimmOct 19, 2007
  35. Nicolas PitreOct 19, 2007
  36. Sam RavnborgOct 19, 2007
  37. Nicolas PitreOct 19, 2007
  38. Andreas EricssonOct 19, 2007
  39. David KastrupOct 19, 2007
  40. Jeff KingOct 19, 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.