Re: Clean up stale .gitignore and .gitattribute patterns
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jun 26, 2023, 15:55 UTC
- Message-ID
- <xmqqo7l25ibw.fsf@gitster.g>
- In-Reply-To
- <CAHGBnuPO63Hi8mfA+MkAGES-gs0eNCDPG2FcPZT=YsnVzKd30A@mail.gmail.com>
Sebastian Schuberth <sschuberth@gmail.com> writes:
Show 6 quoted lines
> Thanks Peff for the suggestion. I ended up scripting something via > JGit [1], as we're anyway using it as part of our Gradle build system. > > PS: As a future idea, it might be good if "git mv" gives a hint about > updating .gitattributes if files matching .gitattributes pattern are > moved.
Interesting. "git mv hello.jpg hello.jpeg" would suggest updating a "*.jpg <list of attribute definitions>" line in the .gitattributes to begin with "*.jpeg"?