Git 如何在tig视图中显示完整文件路径

Git 如何在tig视图中显示完整文件路径,git,tig,Git,Tig,我使用tig来查看发生了什么变化。但是,如何在已更改的文件列表中显示完整路径,而不是仅显示长文件路径的一部分 例如,我想查看SpecialAnswList.java的完整路径,而不是。。。前缀 --- │ .../ui/component/SpeciaAnswList.java | 44 ++++++++-------------- │ 1 file changed, 16 insertions(+), 28 deletions(-) 由于Tig使用git sho

我使用tig来查看发生了什么变化。但是,如何在已更改的文件列表中显示完整路径,而不是仅显示长文件路径的一部分

例如,我想查看SpecialAnswList.java的完整路径,而不是。。。前缀

---
   │  .../ui/component/SpeciaAnswList.java       | 44 ++++++++--------------
   │  1 file changed, 16 insertions(+), 28 deletions(-) 
由于Tig使用git show(1)来显示差异,您可以使用
--stat
diff选项。例如:

$ tig --stat=200,180
不幸的是,没有按百分比进行缩放的选项,因此您必须手动进行缩放

以下是该选项的文档:

--stat[=<width>[,<name-width>[,<count>]]]

       Generate a diffstat. By default, as much space as necessary will be used for the
       filename part, and the rest for the graph part. Maximum width defaults to terminal
       width, or 80 columns if not connected to a terminal, and can be overridden by
       <width>. The width of the filename part can be limited by giving another width
       <name-width> after a comma. The width of the graph part can be limited by using
       --stat-graph-width=<width> (affects all commands generating a stat graph) or by
       setting diff.statGraphWidth=<width> (does not affect git format-patch). By giving a
       third parameter <count>, you can limit the output to the first <count> lines,
       followed by ...  if there are more.

       These parameters can also be set individually with --stat-width=<width>,
       --stat-name-width=<name-width> and --stat-count=<count>.
--stat[=[,[,]]
生成一个diffstat。默认情况下,系统将使用尽可能多的空间
文件名部分,其余部分用于图形部分。最大宽度默认为端子宽度
宽度,如果未连接到端子,则为80列,并且可以由
. 文件名部分的宽度可以通过指定另一个宽度来限制
逗号后。图形部分的宽度可以通过使用
--统计图宽度=(影响生成统计图的所有命令)或
设置diff.statGraphWidth=(不影响git格式修补程序)。通过给予
第三个参数,您可以将输出限制为第一行,
然后。。。如果还有更多的话。
还可以使用--stat width=,单独设置这些参数,
--stat name width=和--stat count=。