aboutsummaryrefslogtreecommitdiff
path: root/userdiff.c
diff options
context:
space:
mode:
authorJakub Narebski <jnareb@gmail.com>2011-04-28 21:04:03 +0200
committerJunio C Hamano <gitster@pobox.com>2011-05-24 11:22:44 -0700
commit4dfa207eec44e0d8869c4978cf3d9861aaf40091 (patch)
treedddd91572eab0cb9ea82fd5cb72a0619e8ac3714 /userdiff.c
parente2895de4d8efef52e835731aaaaa9467e2110e62 (diff)
downloadgit-4dfa207eec44e0d8869c4978cf3d9861aaf40091.tar.gz
git-4dfa207eec44e0d8869c4978cf3d9861aaf40091.tar.xz
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 'userdiff.c')
0 files changed, 0 insertions, 0 deletions