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

Re: [PATCH] Import git-forest (20080403)

From
JEJan Engelhardt <jengelh@computergmbh.de>
Date
Apr 3, 2008, 07:27 UTC
Message-ID
<alpine.LNX.1.10.0804030231180.26216@fbirervta.pbzchgretzou.qr>
In-Reply-To
<7vve3053n7.fsf@gitster.siamese.dyndns.org>
On Wednesday 2008-04-02 23:49, Junio C Hamano wrote:
Show 7 quoted lines
> Jan Engelhardt <jengelh@computergmbh.de> writes:
>
>    Content-Type: TEXT/PLAIN; charset=ISO-8859-1
>
>> +#	git-??????
>
> Hmmmm...

A git-send-email bug it seems. It does not add any Content-Type header thereby effectively trashing UTF-8. How wonderful. Explains a many corrumped patches on LKML (and subsequently, the git history).

Show 5 quoted lines
> This is a Perl script with a curious style.  Your subroutines force the
> "funny" parameter semantics to their callers by using prototypes, but
> avoid the potential surprises and inconveniences prototypes may cause by
> using the &name(...) form when they themselves make subroutine calls,
> i.e. not eating their own dog food.

Right, I removed that. I would have probably used PHP (perl is touted as a write-once language), but I could not be sure everyone has _that_ installed. Perl, most people have it.

> Is it fashionable to make text based tree render these days?
 	Same arguments as last time :>
Definitely. Do not assume everyone has an X display ready at any given 
time. Also, gitk does a Follows/Precedes scan which would not really be 
necessary if you just wanted to have the commit forest.
> How does this compare with the git-graph in the nearby thread?
git-forest does have...
- unicode/line-drawing graphics, colors
- display of signs like gitk, that is, ref names like  ──[v2.6.25-rc7],
   ──[remotes/linus/master], ──[original/filtered-branch] etc.
- display detached HEAD and its parents when --all is given
- track in-progress rebase
differences:
- graph does space reduction between vines
- git-forest keeps a vine in its column right now - this way
   you can point the mouse on it, scroll down until its end and
   keep track of it. (Diagonal art would require adjusting the
   mouse position, which is error prone in complex history
   like linux.)
> Can they borrow from each other?

Mh, I have uptaken some suggestions from the git-graph code: support for --pretty and --reverse. Did not take very long (and if you look at the git log for hxtools you can see it's criminally small patches :-)

-- 
make boldconfig -- to boldly select what no one has selected before
Previous: Junio C HamanoNext: Junio C Hamano
Message 4 of 8 in “git-forest 20080402”
  1. git-forest 20080402Jan Engelhardt, Apr 2, 2008
  2. 1/1 Import git-forestJan Engelhardt, Apr 2, 2008
  3. Junio C HamanoApr 2, 2008
  4. Jan EngelhardtApr 3, 2008
  5. Junio C HamanoApr 3, 2008
  6. Jan EngelhardtApr 3, 2008
  7. Jeff KingApr 3, 2008
  8. Jeff KingApr 3, 2008

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.