* Re: [gentoo-user] OT: git, how to compare a repo with a loose tree
@ 2017-12-08 3:17 99% ` Michael Orlitzky
0 siblings, 0 replies; 1+ results
From: Michael Orlitzky @ 2017-12-08 3:17 UTC (permalink / raw
To: gentoo-user
On 12/07/2017 09:58 PM, Ian Zimmerman wrote:
> I would like to use "git diff" to show differences between the
> current state of a git repository and a normal directory tree somewhere
> on the filesystem, ie. one without a .git subdirectory. This is proving
> surprisingly hard to do.
If "git diff" isn't important, I was able to fake something close but
not quite like it:
colordiff --recursive \
--suppress-common-lines \
--unified \
--exclude=.git \
--new-file \
<src> \
<dst> \
| most
That uses app-misc/colordiff to colorize the diff output, and
sys-apps/most as my pager.
^ permalink raw reply [relevance 99%]
Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2017-12-08 2:58 [gentoo-user] OT: git, how to compare a repo with a loose tree Ian Zimmerman
2017-12-08 3:17 99% ` Michael Orlitzky
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox