簡體   English   中英

如何在tig視圖中顯示完整文件路徑

[英]How to display full file path in tig view

我用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>.

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM