Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsGetting changed files from commitId(SHA-1)
https://www.eclipse.org/forums/index.php/mv/msg/795778/1402567/#msg_1402567
(1)I want to get the commitIds for a local user who has commited the changes but not pushed into repository.I want only those commitIds which are commited only after Last push from his local machine.
(2)Based on those CommitIds i want to get set of files affected for each commitId(i.e the files which were changed in a particular commit).
I am struggling on this from last week. Anyhelp ASAP would be good for me.If You know solution of any part, Please Help. Thanks in advance.]]>neo sunny2014-07-17T07:03:24-00:00Re: Getting changed files from commitId(SHA-1)
https://www.eclipse.org/forums/index.php/mv/msg/795778/1403392/#msg_1403392
- run fetch to ensure your remote tracking branches are in sync with the remote repository
- do a RevWalk starting (walk.markStart()) from all local branches and stop this walk (walk.markUninteresting())
on any remote tracking branch to find the interesting commits
To determine which files have been changed in a commit use DiffFormatter.scan initialized with the tree of
the commit and the tree of its parent commit. See JGit's implementation of git log --name-status in http://git.eclipse.org/c/jgit/jgit.git/tree/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Log.java#n353
]]>Matthias Sohn2014-07-23T12:00:16-00:00Re: Getting changed files from commitId(SHA-1)
https://www.eclipse.org/forums/index.php/mv/msg/795778/1403448/#msg_1403448
sakshi kaushik2014-07-23T18:51:47-00:00