Code Review
/
common
/
bash_it.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
70c3b52
)
Added local-ignore for ignoring local git files
author
Robert R Evans
<robert@codewranglers.org>
Mon, 4 Oct 2010 19:47:25 +0000
(12:47 -0700)
committer
Robert R Evans
<robert@codewranglers.org>
Mon, 4 Oct 2010 19:47:25 +0000
(12:47 -0700)
functions/git.functions.bash
patch
|
blob
|
history
diff --git
a/functions/git.functions.bash
b/functions/git.functions.bash
index
50f4459
..
a2607aa
100644
(file)
--- a/
functions/git.functions.bash
+++ b/
functions/git.functions.bash
@@
-12,4
+12,9
@@
function git_first_push {
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
+}