When updating .gitignore, "git add" it.

This commit is contained in:
tlimoncelli@stackoverflow.com
2015-12-30 14:41:22 +00:00
parent 52e029a587
commit c394b964e8

View File

@@ -562,6 +562,7 @@ function vcs_ignore_hg() {
# Git
function vcs_ignore_git() {
vcs_ignore_generic_file "$(vcs_ignore_file_path)" "$file"
git add "$REPOBASE/.gitignore"
}
# Subversion
function vcs_ignore_svn() {
@@ -603,6 +604,7 @@ function vcs_notice_hg() {
# Git
function vcs_notice_git() {
vcs_notice_generic_file "$REPOBASE/.gitignore" "$file"
git add "$REPOBASE/.gitignore"
}
# Subversion
function vcs_notice_svn() {