diff options
author | Junio C Hamano <gitster@pobox.com> | 2014-06-06 15:33:25 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-06-09 14:53:49 -0700 |
commit | e3fa568cb397a78a56716137c826f21f5e0b0a77 (patch) | |
tree | 24f341eb3297d88a6cd3e21bbfe3110e2237d046 /refs.h | |
parent | Git 1.8.5.5 (diff) | |
download | tgif-e3fa568cb397a78a56716137c826f21f5e0b0a77.tar.xz |
revision: parse "git log -<count>" more carefully
This mistyped command line simply ignores "master" and ends up
showing two commits from the current HEAD:
$ git log -2master
because we feed "2master" to atoi() without making sure that the
whole string is parsed as an integer.
Use the strtol_i() helper function instead.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs.h')
0 files changed, 0 insertions, 0 deletions