Re: No error when overwriting ignored files

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

 



On Wed, Apr 07, 2021 at 03:56:38PM -0400, Horst von Brand wrote:

> When pulling from a repository that tracks a file listed in
> `.gitignore` that would overwrite a local file, this is not reported.
> 
> For example, in the attached repositories, when doing `git pull tst1`
> in `tst2`, it is (correctly) reported that `ignored.not` would be
> overwritten, while `ignored.txt` is not reported.

This is behaving as intended. Ignored files are not considered
"precious". You can find more discussion by searching for that term in
the list archive.

There is no concept of "ignored but precious" in Git. However, here's an
old patch series that tries to move in that direction (using an
attribute):

  https://lore.kernel.org/git/20190216114938.18843-1-pclouds@xxxxxxxxx/

AFAIK nobody is actively working on it right now.

-Peff



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux