Re: [PATCH 1/2] checkout,merge: loosen overwriting untracked file check based on info/exclude
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Nov 29, 2011, 18:17 UTC
- Message-ID
- <7v7h2iu72d.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <1322388933-6284-1-git-send-email-pclouds@gmail.com>
Nguyễn Thái Ngọc Duy <pclouds@gmail.com> writes:
> Back in 1127148 (Loosen "working file will be lost" check in > Porcelain-ish - 2006-12-04), git-checkout.sh learned to quietly > overwrite ignored files. Howver the code only took .gitignore files > into account.
v1.5.3.5-721-g039bc64 also tried to make it harder to make this kind of mistake, and forgot to spot it in git-checkout.sh which was a bit unfortunate.
Thanks. I think both patches make sense, and especially 2/2 opens the door to possibly make ignored ones automatically precious.