diff options
author | Joey Hess <joey@kitenet.net> | 2013-12-01 13:59:39 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2013-12-01 13:59:45 -0400 |
commit | 91bf77fae4e0645d466db01a9a45f6a380c933f7 (patch) | |
tree | a2e57e048dfb9c40edd6ae74d293ec92beb23eb1 /doc | |
parent | 05224f307e37aa51b8daa11ce2d2657e4b41bed3 (diff) |
Avoid using git commit in direct mode, since in some situations it will read the full contents of files in the tree.
The assistant's commit code also always avoids git commit, for simplicity.
Indirect mode sync still does a git commit -a to catch unstaged changes.
Note that this means that direct mode sync no longer runs the pre-commit
hook or any other hooks git commit might call. The git annex pre-commit
hook action for direct mode is however explicitly run. (The assistant
already ran git commit with hooks disabled, so no change there.)
Diffstat (limited to 'doc')
-rw-r--r-- | doc/bugs/direct_mode_sync_should_avoid_git_commit.mdwn | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/bugs/direct_mode_sync_should_avoid_git_commit.mdwn b/doc/bugs/direct_mode_sync_should_avoid_git_commit.mdwn index ed4bb8f47..498c4d000 100644 --- a/doc/bugs/direct_mode_sync_should_avoid_git_commit.mdwn +++ b/doc/bugs/direct_mode_sync_should_avoid_git_commit.mdwn @@ -2,4 +2,4 @@ Per forum post linking to this bug, git commit can be very slow when run in a fi So, git annex sync should stop using git commit when in direct mode, and instead manually make its own commit. Git.Branch.commit and Git.Branch.update should be able to easily be used for this. -PS: this page was created elsewhere, and therefore not listed in bugs page +> [[done]] --[[Joey]] |