summaryrefslogtreecommitdiff
path: root/git-cvsexportcommit.perl
diff options
context:
space:
mode:
authorJakub Narebski <jnareb@gmail.com>2011-04-28 19:04:03 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-05-24 18:22:44 (GMT)
commit4dfa207eec44e0d8869c4978cf3d9861aaf40091 (patch)
treedddd91572eab0cb9ea82fd5cb72a0619e8ac3714 /git-cvsexportcommit.perl
parente2895de4d8efef52e835731aaaaa9467e2110e62 (diff)
downloadgit-4dfa207eec44e0d8869c4978cf3d9861aaf40091.zip
git-4dfa207eec44e0d8869c4978cf3d9861aaf40091.tar.gz
git-4dfa207eec44e0d8869c4978cf3d9861aaf40091.tar.bz2
gitweb.js: Provide default values for padding in padLeftStr and padLeft
This means that one can use padLeft(4, 2) and it would be equivalent to runing padLeft(4, 2, '0'), and it would return '04' i.e. '4' padded with '0' to width 2, to be used e.g. in formatting date and time. This should make those functions easier to use. Current code doesn't yet make use of this feature. Signed-off-by: Jakub Narebski <jnareb@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-cvsexportcommit.perl')
0 files changed, 0 insertions, 0 deletions