mirror of
https://git.ludikovsky.name/git/fugitive.git
synced 2024-10-05 15:35:29 +02:00
replacing --quiet option of git-show with the more reliable -s option
This commit is contained in:
parent
5dfb982bdc
commit
bcb998c65e
|
@ -90,11 +90,11 @@ get_article_content() {
|
||||||
}
|
}
|
||||||
|
|
||||||
get_commit_info() {
|
get_commit_info() {
|
||||||
git show --quiet --format="$1" "$2"
|
git show -s --format="$1" "$2"
|
||||||
}
|
}
|
||||||
get_commit_body() {
|
get_commit_body() {
|
||||||
tmp=`mktemp`
|
tmp=`mktemp`
|
||||||
git show --quiet --format="%b" "$1" > "$tmp"
|
git show -s --format="%b" "$1" > "$tmp"
|
||||||
if [ "`cat \"$tmp\" | sed \"/^$/d\" | wc -l`" != "0" ]; then
|
if [ "`cat \"$tmp\" | sed \"/^$/d\" | wc -l`" != "0" ]; then
|
||||||
echo "$tmp"
|
echo "$tmp"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue