]> source.dussan.org Git - jgit.git/commit
ReflogWriter: Align auto-creation defaults with C git 97/102397/5
authorDave Borowitz <dborowitz@google.com>
Wed, 2 Aug 2017 14:39:27 +0000 (10:39 -0400)
committerDavid Pursehouse <david.pursehouse@gmail.com>
Sat, 30 Sep 2017 11:01:19 +0000 (12:01 +0100)
commit2bbe15abd412d62a6d5a9ccddda73920943cb6f0
tree81d66caab30e23ce7167a4eb4820009e08433419
parent77a28e0d5805da2880ff79a5b54250e7e0b7c9c6
ReflogWriter: Align auto-creation defaults with C git

Per git-config(1), core.logAllRefUpdates auto-creates reflogs for HEAD
and for refs under heads, notes, tags, and for HEAD. Add notes and
remove stash from ReflogWriter#shouldAutoCreateLog. Explicitly force
writing reflogs for refs/stash at call sites, now that this is
supported.

Change-Id: I3a46d2c2703b7c243e0ee2bbf6948279800c485c
org.eclipse.jgit.test/tst/org/eclipse/jgit/api/StashListCommandTest.java
org.eclipse.jgit/src/org/eclipse/jgit/api/RebaseCommand.java
org.eclipse.jgit/src/org/eclipse/jgit/api/StashCreateCommand.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/ReflogWriter.java