Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information