List directories added or deleted between two git commits

I can use commands like

git diff --stat <commit-hash-1> <commit-hash-2>

or

git diff --name-status <commit-hash-1> <commit-hash-2>

(from, for example, here and here ) to list files that have changed between two commits, but how do I list directories? That is, how would I list directories that were added or removed between two commits?

NB There is a similarly formulated question here , but the question and answers include files, I just need directories.

+4
source share
1 answer

As in this answer , you need to

  • processes output git diff --statto get folder name
  • check
    • <commit-hash-1>, <commit-hash-2> ( , ls )
0

Source: https://habr.com/ru/post/1688517/


All Articles