[PATCH 2/2] .gitignore: Add common editor droppings

classic Classic list List threaded Threaded
3 messages Options
Ingmar Vanhassel Ingmar Vanhassel
Reply | Threaded
Open this post in threaded view
|

[PATCH 2/2] .gitignore: Add common editor droppings

---
 .gitignore |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/.gitignore b/.gitignore
index d277c5a..a210779 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,4 +2,6 @@
 notmuch
 notmuch.1.gz
 *.[ao]
+*~
+.*.swp
 
--
1.6.5.2.433.g23cdb


Karl Wiberg-2 Karl Wiberg-2
Reply | Threaded
Open this post in threaded view
|

Re: [PATCH 2/2] .gitignore: Add common editor droppings

On Wed, Nov 18, 2009 at 11:51 PM, Ingmar Vanhassel <[hidden email]> wrote:

> diff --git a/.gitignore b/.gitignore
> index d277c5a..a210779 100644
> --- a/.gitignore
> +++ b/.gitignore
> @@ -2,4 +2,6 @@
>  notmuch
>  notmuch.1.gz
>  *.[ao]
> +*~
> +.*.swp

Since these patterns are specific to a user rather than a project,
shouldn't they go in the user's ignore file (~/.gitignore) rather than
the project's?

--
Karl Wiberg, [hidden email]
   subrabbit.wordpress.com
   www.treskal.com/kalle

Jeffrey Ollie Jeffrey Ollie
Reply | Threaded
Open this post in threaded view
|

Re: [PATCH 2/2] .gitignore: Add common editor droppings

On Wed, Nov 18, 2009 at 11:39 PM, Karl Wiberg <[hidden email]> wrote:
>
> Since these patterns are specific to a user rather than a project,
> shouldn't they go in the user's ignore file (~/.gitignore) rather than
> the project's?

If every user could be counted on to put them in their personal
.gitignore probably not, but I think that it's good practice to at
least ignore the stuff that emacs and vim use for temporary files and
backups.

--
Jeff Ollie