X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/a3e456434ff7ab75d0cae96c22329a3262764444..3fca69b2cdcc288e96f335bbd7ecdc8bc6912749:/contrib/stg-whatchanged diff --git a/contrib/stg-whatchanged b/contrib/stg-whatchanged index f80d0a1..a416e97 100755 --- a/contrib/stg-whatchanged +++ b/contrib/stg-whatchanged @@ -23,8 +23,8 @@ fi # Merges via "push" leave top=bottom so we must look at old patch # in this case (unlike, eg., "pick --fold") -patchdir="$(git-rev-parse --git-dir)/patches/$(stg branch)/$(stg top)" -if [ $(cat "$patchdir/bottom") = $(cat "$patchdir/top") ]; +patchdir="$(git-rev-parse --git-dir)/patches/$(stg branch)/patches/$(stg top)" +if [ -s "$(git-rev-parse --git-dir)/conflicts" ]; then current_cmd="stg show //top.old" else