18

Assume there are 2 directory trees

D:\dir1\ 

and

C:\dir2

Now I want to create a diff report between the directories and files, So not only I need a report which says which files have been modified and what has been modified between the main directories but also the report must give me details of any files or sub directories that have been deleted or added new etc

Should I checkin the dir1 to subversion and then do a check with dir2 ? If so how should I proceed?

Or is there an easier way to proceed? Any directory diff software available?

This can be both Windows based or Linux based.

halfer
  • 19,824
  • 17
  • 99
  • 186
Shanthi
  • 637
  • 2
  • 7
  • 17
  • possible duplicate: http://stackoverflow.com/questions/5874090/how-to-get-diff-between-all-files-inside-2-folders-that-are-on-the-web – Aaron May 27 '16 at 15:08

8 Answers8

21

In Linux diff -r directory1 directory2 would give you that information.

beny23
  • 34,390
  • 5
  • 82
  • 85
10

If you're using Windows, you can check out WinMerge which does diffs of folders: http://winmerge.org/

Waynn Lue
  • 11,344
  • 8
  • 51
  • 76
2

"BeyondCompare" (from Scooter Software) has a very nice graphical interface for comparing directory trees (and the files themselves as well). It is available for Windows, Mac and Linux.

aldo
  • 2,927
  • 21
  • 36
0

KDiff3 is an open source file and directory diff and merge tool.
Runs under Linux, Windows & MacOSX

http://kdiff3.sourceforge.net/

TridenT
  • 4,879
  • 1
  • 32
  • 56
0

The various Jetbrains IDE's all have an awesome Compare Directories feature. They have free trials, and some of the IDE's even have free versions.

goat
  • 31,486
  • 7
  • 73
  • 96
0

Try pkgdiff to visualize differences between directories (added/removed/renamed/moved files and changed content):

pkgdiff -d DIR-0/ DIR-1/

enter image description here

enter image description here

linuxbuild
  • 15,843
  • 6
  • 60
  • 87
0

Devart has a good product called Code Compare that will do both a file diff and a directory diff. It also has a Windows Explorer Context Menu addin.

There is a free and paid version of the application

AperioOculus
  • 6,641
  • 4
  • 26
  • 37
0

This free diff software will do it: Source Gear Diff Merge I am not affiliated with the source gear company.

Fritz
  • 343
  • 1
  • 10