xuhdev
xuhdev

Reputation: 9333

Passing `git blame` options to `git gui blame`

How can I pass git blame options such as -C to git gui blame? Merely typing

git gui blame -C somefile

results in

error: unknown switch `-C'

usage: git cat-file ...

Upvotes: 1

Views: 165

Answers (1)

VonC
VonC

Reputation: 1324258

I see the --line=x option is supported for git gui blame, but other git blame options seem not to be included.

See git-gui/git-gui.sh

if {$subcommand eq "blame"} {
    set subcommand_args {[--line=<num>] rev? path}
} else {
    set subcommand_args {rev? path}
}

Upvotes: 1

Related Questions