3475b09c3e
Except when a commit is made in a view, which changes metadata. Make the assistant commit the git-annex branch after git commit of working tree changes. This allows using the annex.commitmessage-command in the assistant to generate a commit message for the git-annex branch that relies on state gathered during the commit of the working tree. Eg, it might reuse the commit message. Note that, when not using the assistant, a git-annex add still commits the git-annex branch, so such a annex.commitmessage-command set up would not work then. But if someone is using the assistant and wants programmatic control over commit messages, this is useful. Someone not using the assistant can get the same result by using annex.alwayscommit=false during the git-annex add, and git-annex merge after they git commit. pre-commit was never really intended to commit the git-annex branch (except after recording changed metadata), but the assistant did sort of rely on it. It does later commit the git-annex branch before pushing to remotes, but I didn't want to risk building up lots of uncommitted changes to it if that didn't happen frequently. Sponsored-by: the NIH-funded NICEMAN (ReproNim TR&D3) project |
||
---|---|---|
.. | ||
Alert | ||
Install | ||
Pairing | ||
Threads | ||
Types | ||
WebApp | ||
Alert.hs | ||
BranchChange.hs | ||
Changes.hs | ||
Commits.hs | ||
Common.hs | ||
CredPairCache.hs | ||
DaemonStatus.hs | ||
DeleteRemote.hs | ||
Drop.hs | ||
Fsck.hs | ||
Gpg.hs | ||
Install.hs | ||
MakeRemote.hs | ||
MakeRepo.hs | ||
Monad.hs | ||
NamedThread.hs | ||
Pairing.hs | ||
Pushes.hs | ||
RemoteControl.hs | ||
Repair.hs | ||
RepoProblem.hs | ||
Restart.hs | ||
ScanRemotes.hs | ||
Ssh.hs | ||
Sync.hs | ||
TransferQueue.hs | ||
TransferSlots.hs | ||
Unused.hs | ||
Upgrade.hs | ||
WebApp.hs |