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

Re: [PATCH] blame: add option to print tips (--tips)

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 22, 2017, 22:58 UTC
Message-ID
<xmqq1svuvh0y.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<CAOc6etaQ-fDWn38YzXkGOC0fSan1vrxjVDUXS924nBXWTTrhNQ@mail.gmail.com>
Edmundo Carmona Antoranz <eantoranz@gmail.com> writes:
Show 8 quoted lines
> So, this is a draft of what I mean by "adding tips to blame".
>
> Example output (sample from builtin/blame.c):
> ...
> 15:32 $ ./git blame --tips -L 1934,1960 builtin/blame.c
>        cee7f245dc: git-pickaxe: blame rewritten.
> cee7f245dc builtin-pickaxe.c (Junio C Hamano           2006-10-19
> 16:00:04 -0700 1934)

This is unfortunately unreadable to guess what you wanted to achieve, not because the lines are too wide, but because they are line-wrapped.

> Does it look "worthy"? And if so, would it be better to think of
> something like an "aggregate" option (or something like that) that
> would include the common information as tips, something like:

What is the target audience? If you are trying to write a script that reads output by "git blame", you are strongly discouraged unless you are reading from "git blame --porcelain" which is more compact and has this information already IIRC.

Previous: Edmundo Carmona AntoranzNext: Edmundo Carmona Antoranz
Message 3 of 8 in “blame: add option to print tips (--tips)”
  1. blame: add option to print tips (--tips)Edmundo Carmona Antoranz, Jan 22, 2017
  2. Edmundo Carmona AntoranzJan 22, 2017
  3. Junio C HamanoJan 22, 2017
  4. Edmundo Carmona AntoranzJan 22, 2017
  5. Junio C HamanoJan 22, 2017
  6. Pranit BauvaJan 23, 2017
  7. Junio C HamanoJan 23, 2017
  8. Pranit BauvaJan 24, 2017

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.