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

Re: [RFC PATCH 2/2] Teach git-blame --gui how to start git-gui blame

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 21, 2007, 06:19 UTC
Message-ID
<7vtzt13k4o.fsf@assigned-by-dhcp.pobox.com>
In-Reply-To
<20070621045333.GB13977@spearce.org>
"Shawn O. Pearce" <spearce@spearce.org> writes:
Show 11 quoted lines
> To keep things really simple in git-blame we require that the new
> --gui option be the first argument on the command line, and cannot
> be combined with any other option.  If it is the first argument
> then we punt our entire command line as-is into `git gui blame`,
> where that program's option parser will handle selecting out the
> revision and path, if present.
>
>  Its simple and not very intrusive, but has the odd behavior that
>  no option (like --contents) can be used along with it, because
>  git-gui's own blame subcommand doesn't recognize them.  On the
>  other hand it is a useful DWIMery for `git gui blame`.

Hmm. Now, how does "git-blame" tell if there is usable git-gui installed with it? Will we have "git-gui --list-features"?

In either case, I think this description is far less than optimum:
Show 10 quoted lines
> diff --git a/Documentation/git-blame.txt b/Documentation/git-blame.txt
> index 66f1203..96ff02d 100644
> --- a/Documentation/git-blame.txt
> +++ b/Documentation/git-blame.txt
> @@ -10,6 +10,7 @@ SYNOPSIS
>  [verse]
>  'git-blame' [-c] [-b] [-l] [--root] [-t] [-f] [-n] [-s] [-p] [-w] [--incremental] [-L n,m]
>              [-S <revs-file>] [-M] [-C] [-C] [--since=<date>]
> +            [--gui]
>              [<rev> | --contents <file>] [--] <file>

It essentially is two commands with different calling conventions. I would probably do this instead if I were doing this:

SYNOPSIS
--------
[verse]
'git-blame' [-c] [-b] [-l] [--root] [-t] [-f] [-n] [-s] [-p] [-w] [--incremental] [-L n,m]
            [-S <revs-file>] [-M] [-C] [-C] [--since=<date>]
            [<rev> | --contents <file>] [--] <file>
'git-blame' --gui [<rev>] [--] <file>
Previous: Shawn O. PearceNext: Shawn O. Pearce
Message 2 of 8 in “Teach git-blame --gui how to start git-gui blame”
  1. 2/2 Teach git-blame --gui how to start git-gui blameShawn O. Pearce, Jun 21, 2007
  2. Junio C HamanoJun 21, 2007
  3. Shawn O. PearceJun 22, 2007
  4. Junio C HamanoJun 22, 2007
  5. Shawn O. PearceJun 22, 2007
  6. Junio C HamanoJun 22, 2007
  7. Shawn O. PearceJun 22, 2007
  8. Johannes SixtJun 22, 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.