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

Re: [PATCH 2/2] gitview: run blame with -M and -C

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 13, 2007, 04:59 UTC
Message-ID
<7vir9sh2l5.fsf@assigned-by-dhcp.pobox.com>
In-Reply-To
<1181669728642-git-send-email-aneesh.kumar@gmail.com>
"Aneesh Kumar K.V" <aneesh.kumar@gmail.com> writes:
Show 20 quoted lines
> From: Aneesh Kumar K.V <aneesh.kumar@gmail.com>
>
> pass -M  and -C option to git-blame so that blame browsing
> works when the data is copied over from other files.
>
> Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@gmail.com>
> ---
>  contrib/gitview/gitview |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/contrib/gitview/gitview b/contrib/gitview/gitview
> index 286e974..01128f4 100755
> --- a/contrib/gitview/gitview
> +++ b/contrib/gitview/gitview
> @@ -530,7 +530,7 @@ class AnnotateWindow(object):
>  
>  		self.add_file_data(filename, commit_sha1, line_num)
>  
> -		fp = os.popen("git blame --incremental -- " + filename + " " + commit_sha1)
> +		fp = os.popen("git blame --incremental -M -C -C -- " + filename + " " + commit_sha1)

You do not have to say "-M -C -C"; "-C" would imply "-M" anyway.

Previous: Aneesh Kumar K.VNext: Junio C Hamano
Message 3 of 5 in “gitview: Fix the blame interface.”
  1. 1/2 gitview: Fix the blame interface.Aneesh Kumar K.V, Jun 12, 2007
  2. 2/2 gitview: run blame with -M and -CAneesh Kumar K.V, Jun 12, 2007
  3. Junio C HamanoJun 13, 2007
  4. Junio C HamanoJun 13, 2007
  5. Aneesh KumarJun 13, 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.