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

Re: [PATCH] gitk: Show patch for initial commit

From
MKMarcus Karlsson <mk@acc.umu.se>
Date
Oct 1, 2011, 18:42 UTC
Message-ID
<20111001184216.GA5796@kennedy.acc.umu.se>
In-Reply-To
<4E86E343.5070704@in.waw.pl>
On Sat, Oct 01, 2011 at 11:54:11AM +0200, Zbigniew J??drzejewski-Szmek wrote:
Show 24 quoted lines
> On 09/30/2011 11:50 PM, Marcus Karlsson wrote:
> >Make gitk show the patch for the initial commit.
> >
> >Signed-off-by: Marcus Karlsson<mk@acc.umu.se>
> >---
> >  gitk-git/gitk |    2 +-
> >  1 files changed, 1 insertions(+), 1 deletions(-)
> >
> >diff --git a/gitk-git/gitk b/gitk-git/gitk
> >index 4cde0c4..20aeae6 100755
> >--- a/gitk-git/gitk
> >+++ b/gitk-git/gitk
> >@@ -7436,7 +7436,7 @@ proc diffcmd {ids flags} {
> >  	    lappend cmd HEAD
> >  	}
> >      } else {
> >-	set cmd [concat | git diff-tree -r $flags $ids]
> >+	set cmd [concat | git diff-tree -r --root $flags $ids]
> >      }
> >      return $cmd
> >  }
> Cool, this works for me! But I think I would be really nice if gitk
> respected the configuration value of log.showroot. This would give
> nice consistency amongst the various tools.

I agree, that would be reasonable. I'll prepare a new patch with that behavior.

Marcus
Previous: Zbigniew Jędrzejewski-SzmekNext: Junio C Hamano
Message 3 of 4 in “gitk: Show patch for initial commit”
  1. gitk: Show patch for initial commitMarcus Karlsson, Sep 30, 2011
  2. Zbigniew Jędrzejewski-SzmekOct 1, 2011
  3. Marcus KarlssonOct 1, 2011
  4. Junio C HamanoOct 1, 2011

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.