aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorTeddy Wing2018-02-20 23:18:49 +0100
committerTeddy Wing2018-02-20 23:18:49 +0100
commited85526917c8b892c432be74c5fd60ceff4f3ba2 (patch)
tree513104228e2feb6964b14497ec19548a26e5c101 /README.md
parent60d936dfbaa259c6f04cf1361955e6087c3aef78 (diff)
downloadgit-branch-list-ed85526917c8b892c432be74c5fd60ceff4f3ba2.tar.bz2
git-branch-list: Verify ID is an integer before doing `checkout`
When running: $ git branch-list 2 we want to ensure the argument "2" in the example above is an integer. If so, we take it to represent a branch-list ID. Otherwise an error code should be returned. Thanks to Peter Ho on StackOverflow for the neat Bash integer test: https://stackoverflow.com/questions/2210349/bash-test-whether-string-is-valid-as-an-integer/19116862#19116862
Diffstat (limited to 'README.md')
0 files changed, 0 insertions, 0 deletions