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:
@@ -54,6 +54,10 @@ git_ignore() {
|
||||
git_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.
|
||||
|
||||
Reference in New Issue
Block a user