* There should be a `.gitbless; file, protecting files from git clean
@ 2019-01-28 2:41 Sebastian Gniazdowski
2019-01-28 5:05 ` Duy Nguyen
0 siblings, 1 reply; 8+ messages in thread
From: Sebastian Gniazdowski @ 2019-01-28 2:41 UTC (permalink / raw)
To: git
Hello,
Keepiing repo clean with `git clean -dxf' is a very pleasant experience. However, ability to use it ends when one gets untracked but *wanted* files in the repo, like an untracked TODO.
Could a .gitbless file be a solution? I would list in it, e.g.:
TODO
and this way be able to use `git -dxf' again. What do you think?
--
Sebastian Gniazdowski
News: https://twitter.com/ZdharmaI
IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin
Blog: http://zdharma.org
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: There should be a `.gitbless; file, protecting files from git clean
2019-01-28 2:41 There should be a `.gitbless; file, protecting files from git clean Sebastian Gniazdowski
@ 2019-01-28 5:05 ` Duy Nguyen
2019-01-28 5:24 ` Sebastian Gniazdowski
` (3 more replies)
0 siblings, 4 replies; 8+ messages in thread
From: Duy Nguyen @ 2019-01-28 5:05 UTC (permalink / raw)
To: Sebastian Gniazdowski; +Cc: Git Mailing List
On Mon, Jan 28, 2019 at 9:54 AM Sebastian Gniazdowski
<psprint@zdharma.org> wrote:
>
> Hello,
> Keepiing repo clean with `git clean -dxf' is a very pleasant experience. However, ability to use it ends when one gets untracked but *wanted* files in the repo, like an untracked TODO.
>
> Could a .gitbless file be a solution? I would list in it, e.g.:
>
> TODO
>
> and this way be able to use `git -dxf' again. What do you think?
There's a patch that adds "precious" git attribute [1]. I was going to
resend once the backup-log [2] got reviewed but I might just send it
separately to handle the "git clean" case alone.
[1] https://public-inbox.org/git/20181111095254.30473-1-pclouds@gmail.com/
[2] https://public-inbox.org/git/20181209104419.12639-1-pclouds@gmail.com/
>
> --
> Sebastian Gniazdowski
> News: https://twitter.com/ZdharmaI
> IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin
> Blog: http://zdharma.org
>
--
Duy
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: There should be a `.gitbless; file, protecting files from git clean
2019-01-28 5:05 ` Duy Nguyen
@ 2019-01-28 5:24 ` Sebastian Gniazdowski
2019-01-29 0:48 ` Duy Nguyen
2019-01-28 6:23 ` Sebastian Gniazdowski
` (2 subsequent siblings)
3 siblings, 1 reply; 8+ messages in thread
From: Sebastian Gniazdowski @ 2019-01-28 5:24 UTC (permalink / raw)
To: Duy Nguyen; +Cc: Git Mailing List
On 28 stycznia 2019 at 06:05:31, Duy Nguyen (pclouds@gmail.com) wrote:
> On Mon, Jan 28, 2019 at 9:54 AM Sebastian Gniazdowski
> wrote:
> >
> > Hello,
> > Could a .gitbless file be a solution? I would list in it, e.g.:
> >
> > TODO
> >
> > and this way be able to use `git -dxf' again. What do you think?
>
> There's a patch that adds "precious" git attribute [1]. I was going to
> resend once the backup-log [2] got reviewed but I might just send it
> separately to handle the "git clean" case alone.
That would be nice solution. In the email, you ask for a name other than "precious". So maybe "blessed"?
--
Sebastian Gniazdowski
News: https://twitter.com/ZdharmaI
IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin
Blog: http://zdharma.org
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: There should be a `.gitbless; file, protecting files from git clean
2019-01-28 5:05 ` Duy Nguyen
2019-01-28 5:24 ` Sebastian Gniazdowski
@ 2019-01-28 6:23 ` Sebastian Gniazdowski
2019-01-28 15:30 ` Sebastian Gniazdowski
2019-01-28 18:08 ` Junio C Hamano
3 siblings, 0 replies; 8+ messages in thread
From: Sebastian Gniazdowski @ 2019-01-28 6:23 UTC (permalink / raw)
To: Duy Nguyen; +Cc: Git Mailing List
I like the idea of the backup-log, I hope it gets commited!
On 28 stycznia 2019 at 06:05:31, Duy Nguyen (pclouds@gmail.com) wrote:
>
> There's a patch that adds "precious" git attribute [1]. I was going to
> resend once the backup-log [2] got reviewed but I might just send it
> separately to handle the "git clean" case alone.
>
> [1] https://public-inbox.org/git/20181111095254.30473-1-pclouds@gmail.com/
> [2] https://public-inbox.org/git/20181209104419.12639-1-pclouds@gmail.com/
>
> >
> > --
> > Sebastian Gniazdowski
> > News: https://twitter.com/ZdharmaI
> > IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin
> > Blog: http://zdharma.org
> >
>
>
> --
> Duy
>
--
Sebastian Gniazdowski
News: https://twitter.com/ZdharmaI
IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin
Blog: http://zdharma.org
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: There should be a `.gitbless; file, protecting files from git clean
2019-01-28 5:05 ` Duy Nguyen
2019-01-28 5:24 ` Sebastian Gniazdowski
2019-01-28 6:23 ` Sebastian Gniazdowski
@ 2019-01-28 15:30 ` Sebastian Gniazdowski
2019-01-29 1:00 ` Duy Nguyen
2019-01-28 18:08 ` Junio C Hamano
3 siblings, 1 reply; 8+ messages in thread
From: Sebastian Gniazdowski @ 2019-01-28 15:30 UTC (permalink / raw)
To: Duy Nguyen; +Cc: Git Mailing List
On 28 stycznia 2019 at 06:05:31, Duy Nguyen (pclouds@gmail.com) wrote:
> There's a patch that adds "precious" git attribute [1]. I was going to
> resend once the backup-log [2] got reviewed but I might just send it
> separately to handle the "git clean" case alone.
>
> [1] https://public-inbox.org/git/20181111095254.30473-1-pclouds@gmail.com/
> [2] https://public-inbox.org/git/20181209104419.12639-1-pclouds@gmail.com/
The backup log, if done properly, could allow to use git more freely, without nerves that something will beak. I wonder if it could restore also the state before an improper `git clea -dxf' call? I think the chances are low, because this would requrire to save untracked files, but it's worth asking?
--
Sebastian Gniazdowski
News: https://twitter.com/ZdharmaI
IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin
Blog: http://zdharma.org
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: There should be a `.gitbless; file, protecting files from git clean
2019-01-28 5:05 ` Duy Nguyen
` (2 preceding siblings ...)
2019-01-28 15:30 ` Sebastian Gniazdowski
@ 2019-01-28 18:08 ` Junio C Hamano
3 siblings, 0 replies; 8+ messages in thread
From: Junio C Hamano @ 2019-01-28 18:08 UTC (permalink / raw)
To: Duy Nguyen; +Cc: Sebastian Gniazdowski, Git Mailing List
Duy Nguyen <pclouds@gmail.com> writes:
> There's a patch that adds "precious" git attribute [1]. I was going to
> resend once the backup-log [2] got reviewed but I might just send it
> separately to handle the "git clean" case alone.
Thanks.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: There should be a `.gitbless; file, protecting files from git clean
2019-01-28 5:24 ` Sebastian Gniazdowski
@ 2019-01-29 0:48 ` Duy Nguyen
0 siblings, 0 replies; 8+ messages in thread
From: Duy Nguyen @ 2019-01-29 0:48 UTC (permalink / raw)
To: Sebastian Gniazdowski; +Cc: Git Mailing List
On Mon, Jan 28, 2019 at 12:24 PM Sebastian Gniazdowski
<psprint@zdharma.org> wrote:
>
> On 28 stycznia 2019 at 06:05:31, Duy Nguyen (pclouds@gmail.com) wrote:
> > On Mon, Jan 28, 2019 at 9:54 AM Sebastian Gniazdowski
> > wrote:
> > >
> > > Hello,
> > > Could a .gitbless file be a solution? I would list in it, e.g.:
> > >
> > > TODO
> > >
> > > and this way be able to use `git -dxf' again. What do you think?
> >
> > There's a patch that adds "precious" git attribute [1]. I was going to
> > resend once the backup-log [2] got reviewed but I might just send it
> > separately to handle the "git clean" case alone.
>
> That would be nice solution. In the email, you ask for a name other than "precious". So maybe "blessed"?
There's a couple mail replies in that thread that pointed out
"precious" has been used elsewhere (I think Makefile is one) so I
think I'm going to stick with "precious". Besides it sounds "precious"
:D
--
Duy
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: There should be a `.gitbless; file, protecting files from git clean
2019-01-28 15:30 ` Sebastian Gniazdowski
@ 2019-01-29 1:00 ` Duy Nguyen
0 siblings, 0 replies; 8+ messages in thread
From: Duy Nguyen @ 2019-01-29 1:00 UTC (permalink / raw)
To: Sebastian Gniazdowski; +Cc: Git Mailing List
On Mon, Jan 28, 2019 at 10:30 PM Sebastian Gniazdowski
<psprint@zdharma.org> wrote:
>
>
>
> On 28 stycznia 2019 at 06:05:31, Duy Nguyen (pclouds@gmail.com) wrote:
> > There's a patch that adds "precious" git attribute [1]. I was going to
> > resend once the backup-log [2] got reviewed but I might just send it
> > separately to handle the "git clean" case alone.
> >
> > [1] https://public-inbox.org/git/20181111095254.30473-1-pclouds@gmail.com/
> > [2] https://public-inbox.org/git/20181209104419.12639-1-pclouds@gmail.com/
>
>
> The backup log, if done properly, could allow to use git more freely, without nerves that something will beak. I wonder if it could restore also the state before an improper `git clea -dxf' call? I think the chances are low, because this would requrire to save untracked files, but it's worth asking?
backup-log already saves untracked files for "git reset --hard"
support if I remember correctly. Adding support for "git clean" is not
that big a deal. It's just the matter whether to turn it on by default
(because there will be a lot of files being backed up). But now that I
think about it, if backup log is enabled, perhaps we allow "git clean
-dx" (without -f or -i) which will back up all deleted files, while
-fdx will not. Hmm...
--
Duy
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2019-01-29 1:01 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-28 2:41 There should be a `.gitbless; file, protecting files from git clean Sebastian Gniazdowski
2019-01-28 5:05 ` Duy Nguyen
2019-01-28 5:24 ` Sebastian Gniazdowski
2019-01-29 0:48 ` Duy Nguyen
2019-01-28 6:23 ` Sebastian Gniazdowski
2019-01-28 15:30 ` Sebastian Gniazdowski
2019-01-29 1:00 ` Duy Nguyen
2019-01-28 18:08 ` Junio C Hamano
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).