Rev 4816: (igc) Explain that .bzrignore is implicitly added (Patrick Regan, in file:///home/pqm/archives/thelove/bzr/%2Btrunk/ Patch Queue Manager pqm at
Fri Nov 20 05:00:17 GMT 2009

At file:///home/pqm/archives/thelove/bzr/%2Btrunk/

revno: 4816 [merge]
revision-id: pqm at
parent: pqm at
parent: ian.clatworthy at
committer: Patch Queue Manager <pqm at>
branch nick: +trunk
timestamp: Fri 2009-11-20 05:00:17 +0000
  (igc) Explain that .bzrignore is implicitly added (Patrick Regan,
  doc/en/tutorials/tutorial.txt  tutorial.txt-20050804190939-9dcbba2ef053bc84
=== modified file 'bzrlib/'
--- a/bzrlib/	2009-11-19 06:28:13 +0000
+++ b/bzrlib/	2009-11-20 04:15:18 +0000
@@ -2577,6 +2577,12 @@
     See ``bzr help patterns`` for details on the syntax of patterns.
+    If a .bzrignore file does not exist, the ignore command
+    will create one and add the specified files or patterns to the newly
+    created file. The ignore command will also automatically add the 
+    .bzrignore file to be versioned. Creating a .bzrignore file without
+    the use of the ignore command will require an explicit add command.
     To remove patterns from the ignore list, edit the .bzrignore file.
     After adding, editing or deleting that file either indirectly by
     using this command or directly by using an editor, be sure to commit

=== modified file 'doc/en/tutorials/tutorial.txt'
--- a/doc/en/tutorials/tutorial.txt	2009-09-02 16:03:51 +0000
+++ b/doc/en/tutorials/tutorial.txt	2009-11-19 23:30:19 +0000
@@ -403,6 +403,26 @@
     % bzr commit -m "Add ignore patterns"
+bzr ignore
+As an alternative to editing the ``.bzrignore`` file, you can use the 
+``bzr ignore`` command. The ``bzr ignore`` command takes filenames and/or
+patterns as arguments and then adds them to the ``.bzrignore`` file. If a
+``.bzrignore`` file does not exist the ``bzr ignore`` command will 
+automatically create one for you, and implicitly add it to be versioned::
+    % bzr ignore tags
+    % bzr status
+    added:
+      .bzrignore
+Just like when editing the ``.bzrignore`` file on your own, you should
+commit the automatically created ``.bzrignore`` file::
+    % bzr commit -m "Added tags to ignore file"
 Global ignores

More information about the bazaar-commits mailing list