]> source.dussan.org Git - jgit.git/commit
Retain file length and mod time when doing a mixed reset 38/6138/1
authorKevin Sawicki <kevin@github.com>
Sun, 6 May 2012 17:17:05 +0000 (10:17 -0700)
committerKevin Sawicki <kevin@github.com>
Mon, 28 May 2012 21:01:37 +0000 (14:01 -0700)
commit531db82f38c307ee4ade9ac5c61229bc539f7d87
tree7c6f0b7c63a0840fddd0fce6f411316e7aef921d
parentdac66672df0535f61a13273524d46e1e0012ca69
Retain file length and mod time when doing a mixed reset

Previously the index was cleared and updated with a new tree.

Now the commit being reset to and the index are iterated over
in a tree walk and the current index mod time and file length
are copied over to the new dir cache entry being written if
the object ids are the same.

Change-Id: Iaf9e624efb0bf90f9e05fcb0587dde4dec50000c
org.eclipse.jgit/src/org/eclipse/jgit/api/ResetCommand.java