[libvirt] [PATCH] Ignore Vim swap files.

This removes some noise when you're working on the repository and also have a bunch of source files open in Vim in another terminal. --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 7bcf359..1a5cf8e 100644 --- a/.gitignore +++ b/.gitignore @@ -18,6 +18,7 @@ *.pyc *.rej *.s +*.swp *~ .#* .deps -- 2.1.0

On 05/05/2015 07:34 AM, Andrea Bolognani wrote:
This removes some noise when you're working on the repository and also have a bunch of source files open in Vim in another terminal. --- .gitignore | 1 + 1 file changed, 1 insertion(+)
diff --git a/.gitignore b/.gitignore index 7bcf359..1a5cf8e 100644 --- a/.gitignore +++ b/.gitignore @@ -18,6 +18,7 @@ *.pyc *.rej *.s +*.swp *~ .#* .deps
Instead of adding more bits to the .gitignore that aren't specific to the project, I'd recommend you set up a global .gitignore to ignore editor bits: https://stackoverflow.com/questions/7335420/global-git-ignore - Cole

On Sun, 2015-05-10 at 17:28 -0400, Cole Robinson wrote:
Instead of adding more bits to the .gitignore that aren't specific to the project, I'd recommend you set up a global .gitignore to ignore editor bits:
https://stackoverflow.com/questions/7335420/global-git-ignore
Done, thanks for the pointer :) -- Andrea Bolognani <abologna@redhat.com>

On 05/10/2015 03:28 PM, Cole Robinson wrote:
On 05/05/2015 07:34 AM, Andrea Bolognani wrote:
This removes some noise when you're working on the repository and also have a bunch of source files open in Vim in another terminal. --- .gitignore | 1 + 1 file changed, 1 insertion(+)
diff --git a/.gitignore b/.gitignore index 7bcf359..1a5cf8e 100644 --- a/.gitignore +++ b/.gitignore @@ -18,6 +18,7 @@ *.pyc *.rej *.s +*.swp *~ .#* .deps
Instead of adding more bits to the .gitignore that aren't specific to the project, I'd recommend you set up a global .gitignore to ignore editor bits:
I generally recommend that (or at least a per-project local ignore: echo '*.swp' >> .git/info/exclude ), but in this particular case, since it is right next to emacs *~ and .*# ignores, I'm okay with taking this patch. -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org

On 05/05/2015 05:34 AM, Andrea Bolognani wrote:
This removes some noise when you're working on the repository and also have a bunch of source files open in Vim in another terminal. --- .gitignore | 1 + 1 file changed, 1 insertion(+)
diff --git a/.gitignore b/.gitignore index 7bcf359..1a5cf8e 100644 --- a/.gitignore +++ b/.gitignore @@ -18,6 +18,7 @@ *.pyc *.rej *.s +*.swp *~ .#*
ACK and pushed, on the grounds that we already have similar treatment for emacs working files. -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
participants (3)
-
Andrea Bolognani
-
Cole Robinson
-
Eric Blake