path: root/Documentation/git-svn.txt
diff options
authorPete Harlan <>2009-01-18 04:10:14 (GMT)
committerEric Wong <>2009-01-18 23:38:28 (GMT)
commite82f0d73f02e89a95d9477911774d314f70f1063 (patch)
treef1405da02eb0e7e65c44dc56f54021a9fc720510 /Documentation/git-svn.txt
parentbaf5fa8a7fdefc696fb1d79c95ae15a4cc779c1e (diff)
git-svn: Add --localtime option to "fetch"
By default git-svn stores timestamps of fetched commits in Subversion's UTC format. Passing --localtime to fetch will convert them to the timezone of the server on which git-svn is run. This makes the timestamps of a resulting "git log" agree with what "svn log" shows for the same repository. Signed-off-by: Pete Harlan <> Acked-by: Eric Wong <>
Diffstat (limited to 'Documentation/git-svn.txt')
1 files changed, 11 insertions, 0 deletions
diff --git a/Documentation/git-svn.txt b/Documentation/git-svn.txt
index 8d0c421..63d2f5e 100644
--- a/Documentation/git-svn.txt
+++ b/Documentation/git-svn.txt
@@ -92,6 +92,17 @@ COMMANDS
.git/config file may be specified as an optional command-line
+ Store Git commit times in the local timezone instead of UTC. This
+ makes 'git-log' (even without --date=local) show the same times
+ that `svn log` would in the local timezone.
+This doesn't interfere with interoperating with the Subversion
+repository you cloned from, but if you wish for your local Git
+repository to be able to interoperate with someone else's local Git
+repository, either don't use this option or you should both use it in
+the same local timezone.
Runs 'init' and 'fetch'. It will automatically create a
directory based on the basename of the URL passed to it;