0

I'm trying to get the files changed in a particular folder between two tags, but it seems every time below command gives difference in sub-folders as well.

Suppose, a folder path is:

A/B/C/D/E - then running below from within C also gives files changed in D and E - where I want just the files changed in C from where I issued below command:

C> git diff tag1 tag2 --stat

C> git diff tag1 tag2 --stat -- .

C> git diff tag1 tag2 --stat -- ../C

All above gives file changed in D and E as well.

Viki
  • 107
  • 1
  • 8
  • 1
    Thanks. I've derived my answer from [Exclude a directory from git diff](https://stackoverflow.com/questions/4380945/exclude-a-directory-from-git-diff?noredirect=1&lq=1). In my case it is `C> git diff tag1 tag2 --stat . ':(exclude)*/*` – Viki Feb 10 '23 at 10:42

0 Answers0