diff options
author | Joey Hess <joey@kitenet.net> | 2011-06-23 09:56:04 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2011-06-23 09:56:04 -0400 |
commit | 23e765b67c38a9f02b3b5152e7e123819bb696de (patch) | |
tree | 0e18d06b500e48f84cc0a33556160ef2ea4f442d /Branch.hs | |
parent | 9672496a9357c84a4436ead109ba2dc7bc010e8c (diff) |
update re git-annex branch direct modification
Diffstat (limited to 'Branch.hs')
-rw-r--r-- | Branch.hs | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -164,6 +164,8 @@ updateRef ref | ref == fullname = return Nothing | otherwise = do g <- Annex.gitRepo + -- checking with log to see if there have been changes + -- is less expensive than always merging diffs <- liftIO $ Git.pipeRead g [ Param "log", Param (name++".."++ref), @@ -176,6 +178,12 @@ updateRef ref -- By passing only one ref, it is actually -- merged into the index, preserving any -- changes that may already be staged. + -- + -- However, any changes in the git-annex + -- branch that are *not* reflected in the + -- index will be removed. So, documentation + -- advises users not to directly modify the + -- branch. liftIO $ GitUnionMerge.merge g [ref] return $ Just ref |