Re: Add feature to stop tracking files while keeping them in the index
- From
- Igor 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