Thread (3 messages) flat view 3 messages, 3 authors, 2018-12-02

RE: [RFC] git clean --local

From: Randall S. Becker <hidden>
Date: 2018-12-02 17:37:30

On December 2, 2018 8:26, Ævar Arnfjörð Bjarmason wrote:
On Sat, Dec 01 2018, Cameron Boehmer wrote:
quoted
1) add a new flag
-l, --local
    Do not consult git config --global core.excludesFile in
determining what files git ignores. This is useful in conjunction with
-x/-X to preserve user files while removing build artifacts.
Or perhaps a general flag to ignore configuration would be useful for such
cases, see https://public-
inbox.org/git/87zhtqvm66.fsf@evledraar.gmail.com/
Would something like git clean --exclude=file-pattern work as a compromise notion? Files matching the pattern would not be cleaned regardless of .gitignore or their potential preciousness status long-term. Multiple repetitions of the --exclude option might be supportable. I could see that being somewhat useful in scripting.

Cheers,
Randall

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help