commit | 034a3b036236f8f367b64219b886eab385ff6ef3 | [log] [tgz] |
---|---|---|
author | Robert R Evans <robert@codewranglers.org> | 周一 10月 04 12:47:25 2010 -0700 |
committer | Robert R Evans <robert@codewranglers.org> | 周一 10月 04 12:47:25 2010 -0700 |
tree | 57dfa744d0dbf6e9a6bb418ee27fac0262926d4f | |
parent | 70c3b523b3e5a7e1d373085119e6f1587acf02ed [diff] |
Added local-ignore for ignoring local git files
diff --git a/functions/git.functions.bash b/functions/git.functions.bash index 50f4459..a2607aa 100644 --- a/functions/git.functions.bash +++ b/functions/git.functions.bash
@@ -12,4 +12,9 @@ function git_remove_missing_files() { git ls-files -d -z | xargs -0 git update-index --remove -} \ No newline at end of file +} + +# Adds files to git's exclude file (same as .gitignore) +function local-ignore() { + echo "$1" >> .git/info/exclude +}