I have two branches master
and master.min
in my repo.
Suppose my current branch is master.min
.
My master branch is at commit - abcd
Some pushes occur to master branch - efgh
, ijkl
I store the current commit of my master branch:
repo.getBranchCommit("master")
.then(function(commit) {
startCommit = commit;
})
Due to high switching time between branches I need to do all the operations remaining on master.min
So, I do a fetch:
repo.fetch("master");
Now, I need to get the list of all the files which were added, modified or deleted between abcd
& ijkl
commit.getDiff() is not enough. I need diff between two commits.