summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2016-11-07 10:56:45 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2016-11-07 10:56:45 -0400
commit89c146411e3bc24c08646475904b18240aab082b (patch)
tree0e1589820359ca5449ebc888c5ea2a0bb36b9aab /doc
parentb1199670c320cbfddedded76d65fb3f5c9c7f8fe (diff)
response
Diffstat (limited to 'doc')
-rw-r--r--doc/forum/What_operations_are_safe_to_interrupt__63__/comment_1_03d8ddc049cf073e5579ca829b352367._comment24
1 files changed, 24 insertions, 0 deletions
diff --git a/doc/forum/What_operations_are_safe_to_interrupt__63__/comment_1_03d8ddc049cf073e5579ca829b352367._comment b/doc/forum/What_operations_are_safe_to_interrupt__63__/comment_1_03d8ddc049cf073e5579ca829b352367._comment
new file mode 100644
index 000000000..432db2626
--- /dev/null
+++ b/doc/forum/What_operations_are_safe_to_interrupt__63__/comment_1_03d8ddc049cf073e5579ca829b352367._comment
@@ -0,0 +1,24 @@
+[[!comment format=mdwn
+ username="joey"
+ subject="""comment 1"""
+ date="2016-11-07T14:43:46Z"
+ content="""
+Note that git is not entirely robust against being interrupted.
+In particular, interrupting a commit can leave a stale lock file in place,
+and committing will then fail until the user manually goes in and removes
+the lock file.
+
+I'd say that git-annex is overall more robust against interruptions
+than git is, except that git-annex uses git so of course inherits
+its limitations.
+
+git-annex tries to handle all interruptions sanely. Ie, files are always
+moved into place atomically so partial writes are not a problem, stale lock
+files are not a problem, and any recordkeeping that might be lost by an
+interruption should be able to be recovered by running the interrupted
+command again, or perhaps `git annex fsck`.
+
+The only problem that I can think of with interuptions is that
+since git-annex uses temp files in `.git/annex/tmp` extensively,
+if it's interrupted nothing will clean up those temp files.
+"""]]