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

Re: gitk with submodules does not show new commits on other branches

From
SKStephen Kelly <steveire@gmail.com>
Date
Jun 23, 2014, 18:24 UTC
Message-ID
<lo9rcn$8tu$1@ger.gmane.org>
In-Reply-To
<lo9ogu$4in$1@ger.gmane.org>
Stephen Kelly wrote:
Show 6 quoted lines
> I see that gitk is showing the output of git diff --submodule, similar to
> git submodule summary.
> 
> Assuming that is not going to be changed, maybe I can hack
> parseblobdiffline locally. I have not really tried to read of write tcl
> code before though, so I'd still prefer a 'proper' solution somehow.
I dug deeper and came up with this patch which suits my needs:
diff --git a/submodule.c b/submodule.c
index b80ecac..0dacd61 100644
--- a/submodule.c
+++ b/submodule.c
@@ -297,7 +297,7 @@ static int prepare_submodule_summary(struct rev_info 
*rev, const char *path,
        init_revisions(rev, NULL);
        setup_revisions(0, NULL, rev, NULL);
        rev->left_right = 1;
-       rev->first_parent_only = 1;
+  rev->max_parents = 1;
        left->object.flags |= SYMMETRIC_LEFT;
        add_pending_object(rev, &left->object, path);
        add_pending_object(rev, &right->object, path);


The 'merge pull request' merges are only noise to me.

Thanks,

Steve.
Previous: Stephen KellyNext: Jens Lehmann
Message 9 of 11 in “gitk with submodules does not show new commits on other branches”
  1. Stephen KellyJun 22, 2014
  2. Jens LehmannJun 22, 2014
  3. Stephen KellyJun 22, 2014
  4. Stephen KellyJun 23, 2014
  5. Jens LehmannJun 23, 2014
  6. Stephen KellyJun 23, 2014
  7. Stephen KellyJun 23, 2014
  8. Stephen KellyJun 23, 2014
  9. Stephen KellyJun 23, 2014
  10. Jens LehmannJun 23, 2014
  11. Stephen KellyJun 24, 2014

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.