From: Sitaram Chamarty <sitaramc@gmail.com>
To: demerphq <demerphq@gmail.com>
Cc: Andrew Ardill <andrew.ardill@gmail.com>,
Marco Craveiro <marco.craveiro@gmail.com>,
pascal@obry.net, git@vger.kernel.org
Subject: Re: Ignore on commit
Date: Fri, 5 Oct 2012 07:50:11 +0530 [thread overview]
Message-ID: <CAMK1S_jfdW3BepELgPPoUf3qWwmU-o3o8OpMVimdfkERUJkymQ@mail.gmail.com> (raw)
In-Reply-To: <CANgJU+XSYWObCsGVnWwaaSB9iZQnfU_y095uzEm5-YXMaUoU_w@mail.gmail.com>
On Fri, Oct 5, 2012 at 7:05 AM, demerphq <demerphq@gmail.com> wrote:
> On 5 October 2012 03:00, Andrew Ardill <andrew.ardill@gmail.com> wrote:
>> On 5 October 2012 07:20, Marco Craveiro <marco.craveiro@gmail.com> wrote:
>>> ...
>>> Similar but not quite; the idea is that you know that there is some
>>> code (I'm just talking about files here, so lets ignore hunks for the
>>> moment) which is normally checked in but for a period of time you want
>>> it ignored. So you don't want it git ignored but at the same time you
>>> don't want to see these files in the list of modified files.
>>
>> What is the reason git ignore is no good in this case? Is it simply
>> that you can't see the ignored files in git status, or is it that
>> adding and removing entries to .gitignore is too cumbersome? If it's
>> the latter you could probably put together a simple shell wrapper to
>> automate the task, as otherwise it seems like git ignore does what you
>> need.
>
> Git ignore doesn't ignore tracked files.
would 'git update-index --assume-unchanged' work in this case? Didn't
see it mentioned in any of the replies so far (but I have never used
it myself)
next prev parent reply other threads:[~2012-10-05 2:20 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-04 16:45 Ignore on commit Marco Craveiro
2012-10-04 20:06 ` Pascal Obry
2012-10-04 21:20 ` Marco Craveiro
2012-10-04 23:02 ` Andrew Wong
2012-10-05 1:00 ` Andrew Ardill
2012-10-05 1:35 ` demerphq
2012-10-05 2:20 ` Sitaram Chamarty [this message]
2012-10-05 2:44 ` Junio C Hamano
2012-10-05 2:44 ` Andrew Ardill
2012-10-05 6:09 ` Marco Craveiro
2012-10-05 7:00 ` Philip Oakley
2012-10-05 13:30 ` Pascal Obry
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=CAMK1S_jfdW3BepELgPPoUf3qWwmU-o3o8OpMVimdfkERUJkymQ@mail.gmail.com \
--to=sitaramc@gmail.com \
--cc=andrew.ardill@gmail.com \
--cc=demerphq@gmail.com \
--cc=git@vger.kernel.org \
--cc=marco.craveiro@gmail.com \
--cc=pascal@obry.net \
/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).