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.

Reply via email to