Fix .gitignore to prevent loss of vendor contents when using git stash.

This is to work around a bug where 'git stash' would delete directories
that ought to be ignored.
This commit is contained in:
Anthony Yeh 2016-06-10 13:21:46 -07:00
Родитель c02fecca2c
Коммит 4a2585941d
1 изменённых файлов: 9 добавлений и 4 удалений

13
.gitignore поставляемый
Просмотреть файл

@ -22,10 +22,15 @@ tags
/Godeps/_workspace/bin
# Go vendored libs
# Match two levels deep so we can un-ignore specific repos, like below.
/vendor/*/*/
# Un-ignore gozk since it has local modifications.
!/vendor/launchpad.net/gozk/
# Ideally we would match two levels deep so we can un-ignore specific repos
# like launchpad.net/gozk, but doing that triggers a bug in "git stash".
# As a workaround, we ignore at the domain level.
/vendor/*/
# We really only want to un-ignore launchpad.net/gozk,
# because it has local, tracked changes.
# But we can't do that because of the bug mentioned above,
# so we un-ignore all of launchpad.net.
!/vendor/launchpad.net/
# C build dirs
**/build