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

Re: Avoiding uninteresting merges in Cairo

From
Jakub Narebski <jnareb@gmail.com>
Date
Dec 15, 2006, 15:57 UTC
Message-ID
<200612151657.06909.jnareb@gmail.com>
In-Reply-To
<20061215150130.GB17860@spearce.org>
Shawn Pearce wrote:
Show 23 quoted lines
> Jakub Narebski <jnareb@gmail.com> wrote:
>> Carl Worth wrote:
>> 
>>> On Thu, 14 Dec 2006 22:25:30 -0500, Shawn Pearce wrote:
>> 
>>>>  * gitweb made it appear as though a whole lot of Carl's recent
>>>>    work was somehow undone in the merge.
>>> 
>>> That looks like a simple gitweb bug. None of the other tools, (gitk,
>>> git log -p), consider a trivial merge commit like this as having
>>> anything interesting in it worth displaying.
>> 
>> It's not a bug, it is rather lack of feature (or misfeature).
> 
> Its a bug.
> 
> I'm not a gitweb user (meaning I almost never look at something
> in gitweb).  But I'm clearly also not a Git newbie.  ;-)
> 
> I could not fathom why that merge commit was being displayed that
> way in gitweb.  I had to clone the cairo project just so I could
> actually look at the commit with log/show/whatchanged/diff-tree,
> because I couldn't believe what I was seeing from gitweb.

Do you mean "commit" view or "commitdiff" view in gitweb for merges is confusing?

If it is "commit" view, it is fairly easy to remove difftree/whatchanged output below commit message for merges. However while git-show nor git-diff-tree doesn't show diff for merge messages, the diftree output in "commit" view might be taken as 'damages'; git diff --summary always takes summary of diff against first parent.

If it is "commitdiff" view... well, I plan on adding combined diff output to commitdiff, but I need raw (whatchanged) output with the same files which would be shown in git-diff --cc for merges (compact combined diff output). Otherwise I'd have to use combined (-c) output in gitweb, rather than more terse --cc output.

-- 
Jakub Narebski
Next: Shawn Pearce
Message 1 of 3 in “Re: Avoiding uninteresting merges in Cairo”
  1. Jakub NarebskiDec 15, 2006
  2. Shawn PearceDec 15, 2006
  3. gitweb: Do not show difftree for merges in "commit" viewJakub Narebski, Dec 15, 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.