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

Re: [PATCH (resend)] gitweb: Support comparing blobs (files) with different names

From
Junio C Hamano <junkio@cox.net>
Date
Mar 30, 2007, 22:56 UTC
Message-ID
<7virciz6gm.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<200703302341.27225.jnareb@gmail.com>
Jakub Narebski <jnareb@gmail.com> writes:
Show 22 quoted lines
> Fix the bug that caused "blobdiff" view called with new style URI
> for a rename with change diff to be show as new (added) file diff.
>
> New style URI for "blobdiff" for rename means with $hash_base ('hb') and
> $hash_parent_base ('hpb') paramaters denoting tree-ish (usually commit)
> of a blobs being compared, together with both $file_name ('f') and
> $file_parent ('fp') parameters.
>
> It is done by adding $file_parent ('fp') to the path limiter, meaning
> that diff command becomes:
>
> 	git diff-tree [options] hpb hb -- fp f
>
> Other option would be finding hash of a blob using git_get_hash_by_path
> subroutine and comparing blobs using git-diff, or using extended SHA-1
> syntax and compare blobs using git-diff:
>
> 	git diff [options] hpb:fp hp:f
>
> Signed-off-by: Jakub Narebski <jnareb@gmail.com>
> ---
> Junio, could you apply this? It looks like it was lost in the noise.

I was waiting for dust to settle. Ack's from people involved in the discussion would be nice.

Previous: Jakub NarebskiNext: Jakub Narebski
Message 2 of 3 in “gitweb: Support comparing blobs (files) with different names”
  1. gitweb: Support comparing blobs (files) with different namesJakub Narebski, Mar 30, 2007
  2. Junio C HamanoMar 30, 2007
  3. Jakub NarebskiMar 30, 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.