[Bps-public-commit] Config-GitLike branch, master, updated. 373fe6f4588998a6b66f42bc497ef72720bd9506
spang at bestpractical.com
spang at bestpractical.com
Thu Jun 11 13:02:49 EDT 2009
The branch, master has been updated
via 373fe6f4588998a6b66f42bc497ef72720bd9506 (commit)
via 3a110a42806dbb7d28b2be4cfd8fd1ae7f07f172 (commit)
from 2810ab5bc1c128c02801e9c2c6bf2f272765dd2a (commit)
Summary of changes:
lib/Config/GitLike.pm | 20 ++++++++++++++++++++
1 files changed, 20 insertions(+), 0 deletions(-)
- Log -----------------------------------------------------------------
commit 3a110a42806dbb7d28b2be4cfd8fd1ae7f07f172
Author: Christine Spang <spang at mit.edu>
Date: Thu Jun 11 20:01:19 2009 +0300
document ways we differ from git-config
diff --git a/lib/Config/GitLike.pm b/lib/Config/GitLike.pm
index 92c0a56..af24e79 100644
--- a/lib/Config/GitLike.pm
+++ b/lib/Config/GitLike.pm
@@ -1321,6 +1321,26 @@ Return a string containing the key/value pair as they should be printed in the
config file. If C<bare> is true, the returned value is not tab-indented nor
followed by a newline.
+=head1 DIFFERENCES FROM GIT-CONFIG
+
+This module does the following things differently from git-config:
+
+When replacing variable values and renaming sections, we merely use
+a substring replacement rather than writing out new lines formatted in the
+default manner for new lines. Git's replacement/renaming (as of
+1.6.3.2) is currently buggy and loses trailing comments and variables
+that are defined on the same line as a section being renamed. Our
+method preserves original formatting and surrounding information.
+
+We also allow the 'num' type for casting, since in many cases we
+might want to be more lenient on numbers.
+
+We truncate decimal numbers that are cast to C<int>s, whereas
+Git just rejects them.
+
+We don't support NUL-terminating output (the --null flag to
+git-config). Who needs it?
+
=head1 BUGS
If you find any bugs in this module, report them at:
commit 373fe6f4588998a6b66f42bc497ef72720bd9506
Merge: 3a110a4... 2810ab5...
Author: Christine Spang <spang at mit.edu>
Date: Thu Jun 11 20:01:27 2009 +0300
Merge branch 'master' of fsck.com:/git/config-gitlike
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list