git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jakub Narebski <jnareb@gmail.com>
To: llucianf <llucianf@gmail.com>
Cc: git@vger.kernel.org, Ferry Huberts <mailings@hupie.com>
Subject: Re: gitignore design
Date: Fri, 29 Jul 2011 05:27:13 -0700 (PDT)	[thread overview]
Message-ID: <m3y5zhqnlv.fsf@localhost.localdomain> (raw)
In-Reply-To: <1311941774976-6633332.post@n2.nabble.com>

llucianf <llucianf@gmail.com> writes:

> is not a contradiction. i need project files into repo so whenever i clone
> the project on diff machine i need them there.
> but during development i dont need them to be 'taken into account' by git. 

The usual solution is to put _template_ under version control (for
example <projfile>.sample), and have build system create initial
custom version during first build.  Local project file is untracked
and ignored, and project file template is tracked.

> the purpose of this topic is for me to understand why git dont use the
> simple cvs approach on this matter.

Are you sure that is how CVS does it?  Because from what I read in CVS
manual, CVS and Git approach to ignore files are the same wrt. already
tracked files.

> why i cant just enumerate some files into .gitignore file and have git
> simply ignore them without removing them from repo?

There is assume-unchanged mechanism... which is _explicitely_
mentioned in "Notes" section of gitignore(7) manpage.  RTFM, please.

-- 
Jakub Narębski

  reply	other threads:[~2011-07-29 12:27 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-29 10:20 gitignore design llucianf
2011-07-29 11:51 ` Ferry Huberts
2011-07-29 12:01   ` llucianf
2011-07-29 12:08     ` Ferry Huberts
2011-07-29 12:16       ` llucianf
2011-07-29 12:27         ` Jakub Narebski [this message]
2011-07-29 12:44           ` llucianf
2011-07-29 12:57             ` Jakub Narebski
2011-07-29 14:01               ` Ferry Huberts
2011-07-29 12:19     ` Jakub Narebski
2011-07-29 12:58       ` Johannes Sixt
2011-07-29 13:19         ` Jakub Narebski
2011-07-29 13:31           ` Johannes Sixt
2011-07-29 21:39             ` Jakub Narebski
2011-07-30  3:10               ` Nguyen Thai Ngoc Duy
2011-07-30  6:45                 ` Piotr Krukowiecki
2011-07-30 13:22                   ` Nguyen Thai Ngoc Duy
2011-07-30 15:52                     ` Piotr Krukowiecki
2011-07-30 16:01                     ` Clemens Buchacher
2011-07-29 16:44 ` Philip Oakley

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

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

  git send-email \
    --in-reply-to=m3y5zhqnlv.fsf@localhost.localdomain \
    --to=jnareb@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=llucianf@gmail.com \
    --cc=mailings@hupie.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.
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 NNTP newsgroup(s).