git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Igor Djordjevic <igor.d.djordjevic@gmail.com>
To: Viet Nguyen <ntviet18@gmail.com>, git@vger.kernel.org
Subject: Re: Add feature to stop tracking files while keeping them in the index
Date: Mon, 20 Nov 2017 18:13:47 +0100	[thread overview]
Message-ID: <ba0c7ff2-98b1-7331-dfeb-b6adae0d6207@gmail.com> (raw)
In-Reply-To: <CANb5NdLCFiaUjit10aV8ewaJOe3UxM28+PwY96dHDM_95GRv+w@mail.gmail.com>

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

  reply	other threads:[~2017-11-20 17:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2017-11-22  8:16   ` Viet Nguyen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ba0c7ff2-98b1-7331-dfeb-b6adae0d6207@gmail.com \
    --to=igor.d.djordjevic@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=ntviet18@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).