Merge branch 'new-script' into 'master'
Add a script to show the branches and commit hashes of some recipe source See merge request redox-os/redox!1414
This commit is contained in:
commit
46ba4e0ce3
14
scripts/commit-hash.sh
Executable file
14
scripts/commit-hash.sh
Executable file
|
@ -0,0 +1,14 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
if [ $# -ne 1 ]
|
||||||
|
then
|
||||||
|
echo "Usage: $0 recipe_name"
|
||||||
|
echo " Print the commit hash for recipe_name"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
cd cookbook
|
||||||
|
recipe_path="$(target/release/find_recipe $1)"
|
||||||
|
|
||||||
|
cd "$recipe_path"/source
|
||||||
|
git branch -v
|
Loading…
Reference in a new issue