Re: [PATCH] maint: ignore unsaved emacs files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/25/2012 06:15 PM, Eric Blake wrote:
> I did a 'git add .', then realized that it ended up trying to
> add the emacs lock file for a corresponding file that I had not
> yet saved all my edits; thankfully I noticed it in time.  Since
> we already exclude other temporary files, this makes the most
> sense for preventing such a mistake from actually hitting upstream.
>
> * .gitignore: Add .#* to the exclude list.
> ---
>
> If you don't like this patch, then I will be updating my local
> .git/info/exclude file; I could understand someone wanting to
> reject this patch on the grounds that 'make' does not create
> any temporary files under this name, but only my choice of
> editor (and not everyone shares that choice in editor).  So
> I'll wait for an ack instead of claiming the trivial rule.
>
>  .gitignore | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/.gitignore b/.gitignore
> index 804eda4..51d83a6 100644
> --- a/.gitignore
> +++ b/.gitignore
> @@ -1,3 +1,4 @@
> +.#*
>  *#*#
>  *.#*#
>  *.a

Well, don't we also ignore *~? That's created by an editor too.

ACK.

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]