changeset 338:203095c5cb25

Merge documentation of in-tree and cleanup of the variable.
author Augie Fackler <durin42@gmail.com>
date Sat, 12 Jun 2010 21:23:01 -0500
parents 6cea997ee302 (current diff) ef7a7df7a8a7 (diff)
children 7d0cb1938ef9
files hggit/git_handler.py
diffstat 2 files changed, 15 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/README.md	Wed Jun 02 20:14:26 2010 +0800
+++ b/README.md	Sat Jun 12 21:23:01 2010 -0500
@@ -74,6 +74,20 @@
 
 That will enable the Hg-Git extension for you.  The bookmarks section is not compulsory, but it makes some things a bit nicer for you.
 
+Configuration
+=============
+
+git.intree
+----------
+
+hg-git keeps a git repository clone for reading and updating. By default, the
+git clone is the subdirectory `git` in your local Mercurial repository. If you
+would like this git clone to be at the same level of your Mercurial repository
+instead (named `.git`), add the following to your `hgrc`:
+
+    [git]
+    intree = True
+
 Authors
 ========
 
--- a/hggit/git_handler.py	Wed Jun 02 20:14:26 2010 +0800
+++ b/hggit/git_handler.py	Sat Jun 12 21:23:01 2010 -0500
@@ -23,7 +23,7 @@
         self.repo = dest_repo
         self.ui = ui
 
-        if ui.config('git', 'intree'):
+        if ui.configbool('git', 'intree'):
             self.gitdir = self.repo.wjoin('.git')
         else:
             self.gitdir = self.repo.join('git')