Merge pull request #132 from StackExchange/tlim_gitignore
When updating .gitignore, "git add" it.
This commit is contained in:
@@ -562,6 +562,7 @@ function vcs_ignore_hg() {
|
|||||||
# Git
|
# Git
|
||||||
function vcs_ignore_git() {
|
function vcs_ignore_git() {
|
||||||
vcs_ignore_generic_file "$(vcs_ignore_file_path)" "$file"
|
vcs_ignore_generic_file "$(vcs_ignore_file_path)" "$file"
|
||||||
|
git add "$REPOBASE/.gitignore"
|
||||||
}
|
}
|
||||||
# Subversion
|
# Subversion
|
||||||
function vcs_ignore_svn() {
|
function vcs_ignore_svn() {
|
||||||
@@ -603,6 +604,7 @@ function vcs_notice_hg() {
|
|||||||
# Git
|
# Git
|
||||||
function vcs_notice_git() {
|
function vcs_notice_git() {
|
||||||
vcs_notice_generic_file "$REPOBASE/.gitignore" "$file"
|
vcs_notice_generic_file "$REPOBASE/.gitignore" "$file"
|
||||||
|
git add "$REPOBASE/.gitignore"
|
||||||
}
|
}
|
||||||
# Subversion
|
# Subversion
|
||||||
function vcs_notice_svn() {
|
function vcs_notice_svn() {
|
||||||
|
|||||||
Reference in New Issue
Block a user