]> source.dussan.org Git - jgit.git/commit
Add support for logAllRefUpdates configuration parameter 03/3/2
authorChristian Halstrick <christian.halstrick@sap.com>
Thu, 1 Oct 2009 14:13:09 +0000 (16:13 +0200)
committerChristian Halstrick <christian.halstrick@sap.com>
Fri, 2 Oct 2009 18:49:15 +0000 (20:49 +0200)
commitffc8b42957a2f294960d5ad027e2c7e41d3f70cd
tree37a5e7d77efef7e51ff391bab348b47a2c3bc5f8
parent4cfc7baf9ee56a282232a243c1bcc5931aa9ea75
Add support for logAllRefUpdates configuration parameter

Honor the configuration parameter core.logAllRefUpdates when writing
reflogs.  Instead of writing reflog entries always only write
reflogs if this parameter is set to true or if the corresponding
file in the <git-dir>/logs directory already exists. In other words:
if you are updating a ref and this parameter is set to false and
there is no file corresponding to your ref in the <git-dir>/logs
folder then no reflog will be written.

This is a fix for the issue http://code.google.com/p/egit/issues/detail?id=4

Change-Id: I908e4c77e3630dc3223b2d2a47cb4534dbe4ed42
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Signed-off-by: Christian Halstrick <christian.halstrick@sap.com>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/ReflogConfigTest.java [new file with mode: 0644]
org.eclipse.jgit/src/org/eclipse/jgit/lib/CoreConfig.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/RefLogWriter.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java