git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* Add feature to stop tracking files while keeping them in the index
@ 2017-11-20  9:52 Viet Nguyen
  2017-11-20 17:13 ` Igor Djordjevic
  0 siblings, 1 reply; 3+ messages in thread
From: Viet Nguyen @ 2017-11-20  9:52 UTC (permalink / raw)
  To: git

Hello everyone,

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.

Best regards,

Viet Nguyen

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Add feature to stop tracking files while keeping them in the index
  2017-11-20  9:52 Add feature to stop tracking files while keeping them in the index Viet Nguyen
@ 2017-11-20 17:13 ` Igor Djordjevic
  2017-11-22  8:16   ` Viet Nguyen
  0 siblings, 1 reply; 3+ messages in thread
From: Igor Djordjevic @ 2017-11-20 17:13 UTC (permalink / raw)
  To: Viet Nguyen, git

Hi Viet,

On 20/11/2017 10:52, Viet Nguyen wrote:
> 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Add feature to stop tracking files while keeping them in the index
  2017-11-20 17:13 ` Igor Djordjevic
@ 2017-11-22  8:16   ` Viet Nguyen
  0 siblings, 0 replies; 3+ messages in thread
From: Viet Nguyen @ 2017-11-22  8:16 UTC (permalink / raw)
  To: Igor Djordjevic, git

Hi Igor,

On November 20, 2017 at 7:15:00 PM, Igor Djordjevic
(igor.d.djordjevic@gmail.com) wrote:
> Hi Viet,
>
> On 20/11/2017 10:52, Viet Nguyen wrote:
> > 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
>

We are currently using git-update-index in a client hook, but found it
a little tedious because sometime we forget to configure the hooks
correctly and it just stop working. So I am thinking that it would be
a lot better if we can store it somewhere in the shared repository, so
the other developers could ignore the fact that some files in our
project are special and treat them just like the regular files.

Best regards,

Viet

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-11-22  8:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-20  9:52 Add feature to stop tracking files while keeping them in the index Viet Nguyen
2017-11-20 17:13 ` Igor Djordjevic
2017-11-22  8:16   ` Viet Nguyen

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).