diff options
author | Teddy Wing | 2018-02-20 23:18:49 +0100 |
---|---|---|
committer | Teddy Wing | 2018-02-20 23:18:49 +0100 |
commit | ed85526917c8b892c432be74c5fd60ceff4f3ba2 (patch) | |
tree | 513104228e2feb6964b14497ec19548a26e5c101 /README.md | |
parent | 60d936dfbaa259c6f04cf1361955e6087c3aef78 (diff) | |
download | git-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