【问题标题】:Passing `git blame` options to `git gui blame`将 `git blame` 选项传递给 `git gui blame`
【发布时间】:2019-12-20 10:43:21
【问题描述】:

如何将git blame 选项(例如-C)传递给git gui blame?只是打字

git gui blame -C somefile

结果

错误:未知开关 `-C'

用法:git cat-file ...

【问题讨论】:

    标签: git git-gui git-blame


    【解决方案1】:

    我看到git gui blame 支持--line=x 选项,但似乎不包括其他git blame 选项。

    git-gui/git-gui.sh

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

    【讨论】:

      猜你喜欢
      • 2022-01-22
      • 2012-11-09
      • 2018-08-30
      • 2014-10-18
      • 2016-04-19
      • 2012-05-21
      • 2021-10-27
      • 1970-01-01
      • 2015-12-22
      相关资源
      最近更新 更多