summaryrefslogtreecommitdiff
path: root/diffcore.h
diff options
context:
space:
mode:
authorLibravatar Jakub Narebski <jnareb@gmail.com>2011-04-28 21:04:03 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2011-05-24 11:22:44 -0700
commit4dfa207eec44e0d8869c4978cf3d9861aaf40091 (patch)
treedddd91572eab0cb9ea82fd5cb72a0619e8ac3714 /diffcore.h
parentgitweb.js: Update and improve comments in JavaScript files (diff)
downloadtgif-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 'diffcore.h')
0 files changed, 0 insertions, 0 deletions