How to ignore files only on one computer

John Arbash Meinel john at arbash-meinel.com
Sat Aug 21 20:27:24 BST 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 8/20/2010 3:55 AM, Martin Pool wrote:
> On 20 August 2010 18:43, Carl Youngblood <carl at youngbloods.org> wrote:
>> I have a situation where I need to change some files in a repository
>> for my machine but don't want these changes to be passed on to other
>> developers. I would like to be able to configure my local installation
>> of bazaar to ignore these files when I do commits. But I can't find
>> any way of doing this. Git has a global config that can let you set
>> things like this.
> 
> Sorry, there's no persistent configuration for this, but you can
> exclude files from a commit with -x.  If you would like to try adding
> a configuration item it may not be very hard.
> 

There is the global ignore file, but it doesn't supersede individual
files being versioned.

The most recommended method of handling this is to define a 'template'
flie which is the versioned text, and that gets copied to a different
file locally to turn it into the actual file.

For example, instead of versioning "foo.config" you version
"foo.config-template" and ignore "foo.config". Then when using it on a
machine, you just "cp foo.config-template foo.config" and edit it
however you like.

John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxwKJsACgkQJdeBCYSNAAPzpwCfQC7D0DMSXp5lGnxG+L0wMT6g
+IQAn04CaZVS/iobaiRdwLQ1167wbE9t
=y3MS
-----END PGP SIGNATURE-----



More information about the bazaar mailing list