diff options
author | Teddy Wing | 2020-08-23 18:38:34 +0200 |
---|---|---|
committer | Teddy Wing | 2020-08-23 18:38:34 +0200 |
commit | 76079daf1e2175d02c9c584e47a21650fce30bb6 (patch) | |
tree | f8a7d80dc07500c8ed983686de399abb6fdc6a2e /src/arg.rs | |
parent | 4c15bad2a95768ab6e299866c55aed31215fe6cc (diff) | |
download | git-suggestion-76079daf1e2175d02c9c584e47a21650fce30bb6.tar.bz2 |
git-sugdiff: Add `--no-pager` to `git diff` command
The diff command wasn't exiting after outputting the diff. Add the
`--no-pager` argument to ensure that the pager doesn't activate. This
also seems to cause the command to exit once all the output is printed.
We don't want the pager because we need to call `git diff` for each
suggestion. If an early diff took up more than a page and activated the
pager, that would block the next diffs from appearing. We want them all
to appear at once.
Diffstat (limited to 'src/arg.rs')
0 files changed, 0 insertions, 0 deletions