iostrym
iostrym

Reputation: 125

Compare commit in separate branches and detect common modified files

Using git I would like to monitor that branch developpers are working on separate files or at least I want to check that common modified files are the correct ones.

using different tools (tortoise or smartgit for instance), if I select two commit in separate branches I can see :

added files removed files modified files

but a "modified" files don't mean that both commit (and their predecessor) modified the file. maybe only one branch modified the file (and it is not a problem).

if would like to do it manually I need to : make a diff between commit A in branchA with the source of branchA/branchB (= SOURCE) => list all modified files make a diff between commit B in branchB with the source of the branchA/branchB (= SOURCE) => list all modified files

and then check if there are common file that are modified in each list.

isn't there a command that could do it by itself ?

Upvotes: 0

Views: 57

Answers (0)

Related Questions