{"thread":{"id":"47248","subject":"Add feature to stop tracking files while keeping them in the index","startedAt":"2017-11-20T09:52:16Z","lastAt":"2017-11-22T08:16:36Z","messageCount":3,"participants":["Viet Nguyen","Igor Djordjevic"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"332899","messageId":"CANb5NdLCFiaUjit10aV8ewaJOe3UxM28+PwY96dHDM_95GRv+w@mail.gmail.com","threadId":"47248","inReplyTo":null,"subject":"Add feature to stop tracking files while keeping them in the index","fromName":"Viet Nguyen","fromEmail":"ntviet18@gmail.com","sentAt":"2017-11-20T09:52:08Z","receivedAt":"2017-11-20T09:52:16Z","isPatch":false,"sender":{"key":"ntviet18@gmail.com","avatar":null},"body":"Hello everyone,\n\nCurrently, a file can be either tracked or untracked. So, I propose we\nadd a feature to stop tracking files while keeping them in the index.\n\nExample scenario:\n- A developer would like to add some configuration files with example\nvalues, e.g. DB_PASSWORD=changeme. But in the future he also want to\nupdate those files and to notify the others with conflicts.\n\nBest regards,\n\nViet Nguyen\n"},{"id":"332915","messageId":"ba0c7ff2-98b1-7331-dfeb-b6adae0d6207@gmail.com","threadId":"47248","inReplyTo":"CANb5NdLCFiaUjit10aV8ewaJOe3UxM28+PwY96dHDM_95GRv+w@mail.gmail.com","subject":"Re: Add feature to stop tracking files while keeping them in the index","fromName":"Igor Djordjevic","fromEmail":"igor.d.djordjevic@gmail.com","sentAt":"2017-11-20T17:13:47Z","receivedAt":"2017-11-20T17:15:06Z","isPatch":false,"sender":{"key":"igor.d.djordjevic@gmail.com","avatar":null},"body":"Hi Viet,\n\nOn 20/11/2017 10:52, Viet Nguyen wrote:\n> Currently, a file can be either tracked or untracked. So, I propose we\n> add a feature to stop tracking files while keeping them in the index.\n> \n> Example scenario:\n> - A developer would like to add some configuration files with example\n> values, e.g. DB_PASSWORD=changeme. But in the future he also want to\n> update those files and to notify the others with conflicts.\n\nIf I`m understanding you correctly, what you want should already be \npossible through `git update-index --[no-]skip-worktree`[1].\n\nRegards, Buga\n\n[1] https://git-scm.com/docs/git-update-index#git-update-index---no-skip-worktree\n"},{"id":"333256","messageId":"CANb5NdL3=L-z7E=XSzfKF_JunpDUrwfK101jEAwua8C5_cEooQ@mail.gmail.com","threadId":"47248","inReplyTo":"ba0c7ff2-98b1-7331-dfeb-b6adae0d6207@gmail.com","subject":"Re: Add feature to stop tracking files while keeping them in the index","fromName":"Viet Nguyen","fromEmail":"ntviet18@gmail.com","sentAt":"2017-11-22T08:16:30Z","receivedAt":"2017-11-22T08:16:36Z","isPatch":false,"sender":{"key":"ntviet18@gmail.com","avatar":null},"body":"Hi Igor,\n\nOn November 20, 2017 at 7:15:00 PM, Igor Djordjevic\n(igor.d.djordjevic@gmail.com) wrote:\n> Hi Viet,\n>\n> On 20/11/2017 10:52, Viet Nguyen wrote:\n> > Currently, a file can be either tracked or untracked. So, I propose we\n> > add a feature to stop tracking files while keeping them in the index.\n> >\n> > Example scenario:\n> > - A developer would like to add some configuration files with example\n> > values, e.g. DB_PASSWORD=changeme. But in the future he also want to\n> > update those files and to notify the others with conflicts.\n>\n> If I`m understanding you correctly, what you want should already be\n> possible through `git update-index --[no-]skip-worktree`[1].\n>\n> Regards, Buga\n>\n> [1] https://git-scm.com/docs/git-update-index#git-update-index---no-skip-worktree\n>\n\nWe are currently using git-update-index in a client hook, but found it\na little tedious because sometime we forget to configure the hooks\ncorrectly and it just stop working. So I am thinking that it would be\na lot better if we can store it somewhere in the shared repository, so\nthe other developers could ignore the fact that some files in our\nproject are special and treat them just like the regular files.\n\nBest regards,\n\nViet\n"}]}