<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -29,8 +29,6 @@ To get a cheat sheet:
 
 $ chit [cheatsheet]
 
-If it does not exist, a new one will be created and waiting for editing. Leave it blank and quit the editor if you don't want to add a new one.
-
 To edit a cheat sheet, use the --edit/-e switch.
 
 $ cheat [cheatsheet] --edit
@@ -78,6 +76,8 @@ chit --init
 Before run 'chit', you may want to config ~/.chitrc which is a YAML file.
 
 * root: local path to store the cheat sheet. By default, it is ~/.chit
+* add_if_not_exist: when set as 'true', if no sheets found, a new one will be created and waiting for editing. Leave it blank and quit the editor if you don't 
+want to add a new one.
 * main: 
 * clone-from: where to get the public cheat sheets. You can use git://github.com/robin/chitsheet.git, which is a snap shoot of http://cheat.errtheblog.com/.
 * private:</diff>
      <filename>README.txt</filename>
    </modified>
    <modified>
      <diff>@@ -32,7 +32,11 @@ module Chit
     end
     
     unless File.exist?(sheet_file)
-      add(sheet_file)
+      if args.delete('--no-add').nil? &amp;&amp; CONFIG['add_if_not_exist']
+        add(sheet_file)
+      else
+        puts &quot;Error!:\n  #{@sheet} not found&quot;
+      end
     else
       show(sheet_file)
     end</diff>
      <filename>lib/chit.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,4 +1,5 @@
 # root: 
+# add_if_not_exist: true
 main:
   clone-from: git://github.com/robin/chitsheet.git
 #  push-to:</diff>
      <filename>resources/chitrc</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>0234c6e5e8f8d4ccd3982a352eb29bc86fdd0488</id>
    </parent>
  </parents>
  <author>
    <name>Robin Lu</name>
    <email>iamawalrus@gmail.com</email>
  </author>
  <url>http://github.com/robin/chit/commit/b5ff96b16714a0a5bea834a30ed2519101227168</url>
  <id>b5ff96b16714a0a5bea834a30ed2519101227168</id>
  <committed-date>2008-06-21T06:44:27-07:00</committed-date>
  <authored-date>2008-06-21T06:44:27-07:00</authored-date>
  <message>change the default behavior when the sheet does not exists.

If you want to trigger --add automatically, set 'add_if_not_exist' in .chitrc to true.</message>
  <tree>22ddb1073a9ba6967705765c38b20ce25d2b518b</tree>
  <committer>
    <name>Robin Lu</name>
    <email>iamawalrus@gmail.com</email>
  </committer>
</commit>
