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

Re: Add feature to stop tracking files while keeping them in the index

From
IDIgor Djordjevic <igor.d.djordjevic@gmail.com>
Date
Nov 20, 2017, 17:13 UTC
Message-ID
<ba0c7ff2-98b1-7331-dfeb-b6adae0d6207@gmail.com>
In-Reply-To
<CANb5NdLCFiaUjit10aV8ewaJOe3UxM28+PwY96dHDM_95GRv+w@mail.gmail.com>
Hi Viet,
On 20/11/2017 10:52, Viet Nguyen wrote:
Show 7 quoted lines
> Currently, a file can be either tracked or untracked. So, I propose we
> add a feature to stop tracking files while keeping them in the index.
> 
> Example scenario:
> - A developer would like to add some configuration files with example
> values, e.g. DB_PASSWORD=changeme. But in the future he also want to
> update those files and to notify the others with conflicts.

If I`m understanding you correctly, what you want should already be possible through `git update-index --[no-]skip-worktree`[1].

Regards, Buga
[1] https://git-scm.com/docs/git-update-index#git-update-index---no-skip-worktree
Previous: Viet NguyenNext: Viet Nguyen
Message 2 of 3 in “Add feature to stop tracking files while keeping them in the index”
  1. Viet NguyenNov 20, 2017
  2. Igor DjordjevicNov 20, 2017
  3. Viet NguyenNov 22, 2017

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.