aboutsummaryrefslogtreecommitdiff
path: root/doc/todo
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-02-18 23:03:03 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-02-18 23:03:03 -0400
commitf8a4f0c0b2ca97074373f92f5bf0511bc41e0dad (patch)
treeacb72a5f3b39908c830c3f5a348be6457072fa42 /doc/todo
parent203e9f738656bd851f2aa0e13d9dfa1828853651 (diff)
an idea from australia
Diffstat (limited to 'doc/todo')
-rw-r--r--doc/todo/direct_mode_guard.mdwn15
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/todo/direct_mode_guard.mdwn b/doc/todo/direct_mode_guard.mdwn
new file mode 100644
index 000000000..a380a9abc
--- /dev/null
+++ b/doc/todo/direct_mode_guard.mdwn
@@ -0,0 +1,15 @@
+Currently [[/direct_mode]] allows the user to point many normally safe
+git commands at his foot and pull the trigger. At LCA2013, a git-annex
+user suggested modifying direct mode to make this impossible.
+
+One way to do it would be to move the .git directory. Instead, make there
+be a .git-annex directory in direct mode repositories. git-annex would know
+how to use it, and would be extended to support all known safe git
+commands, passing parameters through, and in some cases verifying them.
+
+So, for example, `git annex commit` would run `git commit --git-dir=.git-annex`
+
+However, `git annex commit -a` would refuse to run, or even do something
+intelligent that does not involve staging every direct mode file.
+
+--[[Joey]]