summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorGravatar josch <josch@web>2014-06-27 13:28:30 +0000
committerGravatar admin <admin@branchable.com>2014-06-27 13:28:30 +0000
commit2d6e0ebe28cbedf3ac743798b9008fc9381e89a2 (patch)
tree520a9441e802e25dc801bacad59634ae33cc8896 /doc
parent2fd9734b7d76e1b2ebacae475a4dc1dcaee8440d (diff)
Diffstat (limited to 'doc')
-rw-r--r--doc/forum/how_to_prevent_accidentally_running___96__git_add__96____63__.mdwn4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/forum/how_to_prevent_accidentally_running___96__git_add__96____63__.mdwn b/doc/forum/how_to_prevent_accidentally_running___96__git_add__96____63__.mdwn
index 3ce01d5cd..e7de59210 100644
--- a/doc/forum/how_to_prevent_accidentally_running___96__git_add__96____63__.mdwn
+++ b/doc/forum/how_to_prevent_accidentally_running___96__git_add__96____63__.mdwn
@@ -1,5 +1,5 @@
I fear that while using git annex I will at some point accidentally `git add` some small files and not notice it until the only way to fix the problem is to rewrite history. What would be the best way to prevent myself from ever `git add`-ing a file into my annex repository instead of `git annex add`-ing it?
-And secondly, how can I best search in my git annex repository whether I already did this mistake in the past or not? Currently I'm using this:
+And secondly, how can I best search in my git annex repository whether I already did this mistake in the past or not? Currently I'm using this which returns everything that's not a symlink or a git submodule:
- git ls-files -s | awk ' $1 != '120000' { print $4 }'
+ git ls-files -s | awk ' $1 != 120000 && $1 != 160000 { print $4 }'