0

tig を使用して変更内容を表示します。しかし、長いファイル パスの一部だけではなく、変更されたファイル リストに完全なパスを表示するにはどうすればよいでしょうか。

たとえば、... プレフィックスの代わりに、SpecialAnswList.java のフル パスを確認したいと考えています。

---
   │  .../ui/component/SpeciaAnswList.java       | 44 ++++++++--------------
   │  1 file changed, 16 insertions(+), 28 deletions(-) 
4

1 に答える 1

2

Tig は git-show(1) を使用して差分を表示するため、--statdiff オプションを使用できます。例えば:

$ 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>.
于 2014-01-24T03:00:11.123 に答える