It is often useful to exclude the basename of a file from status shortcuts. i.e. git_exclude_basename $e2

This commit is contained in:
Nathan Broadbent
2011-12-17 11:05:18 +08:00
parent 1ad7408d05
commit 6eaeb873d6

View File

@@ -54,6 +54,10 @@ git_ignore() {
git_exclude() { git_exclude() {
git_ignore "$1" ".git/info/exclude" git_ignore "$1" ".git/info/exclude"
} }
# Exclude basename of file
git_exclude_basename() {
git_exclude $(basename "$1")
}
# Use git bisect to find where text was removed from a file. # Use git bisect to find where text was removed from a file.