git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: There should be a `.gitbless; file, protecting files from git clean

From
Duy Nguyen <pclouds@gmail.com>
Date
Jan 28, 2019, 05:05 UTC
Message-ID
<CACsJy8BMc9k3Q=P=2CaJ9yyXhc4C_BgGVO=S_J0_R8zDweahLQ@mail.gmail.com>
In-Reply-To
<etPan.5c4e6be4.2ca84d68.4d5@zdharma.org>

On Mon, Jan 28, 2019 at 9:54 AM Sebastian Gniazdowski <psprint@zdharma.org> wrote:

Show 9 quoted lines
>
> 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/

Show 7 quoted lines
>
> --
> Sebastian Gniazdowski
> News: https://twitter.com/ZdharmaI
> IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin
> Blog: http://zdharma.org
>
-- 
Duy
Previous: Sebastian GniazdowskiNext: Sebastian Gniazdowski
Message 2 of 8 in “There should be a `.gitbless; file, protecting files from git clean”
  1. Sebastian GniazdowskiJan 28, 2019
  2. Duy NguyenJan 28, 2019
  3. Sebastian GniazdowskiJan 28, 2019
  4. Duy NguyenJan 29, 2019
  5. Sebastian GniazdowskiJan 28, 2019
  6. Sebastian GniazdowskiJan 28, 2019
  7. Duy NguyenJan 29, 2019
  8. Junio C HamanoJan 28, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.