diff --git a/sys/src/cmd/git/revert b/sys/src/cmd/git/revert index c576af5c3..4174d6bc0 100644 --- a/sys/src/cmd/git/revert +++ b/sys/src/cmd/git/revert @@ -5,7 +5,8 @@ rfork en gitup flagfmt='c:query query' args='file ...' -eval `''{aux/getflags $*} || exec aux/usage +if (! eval `''{aux/getflags $*} || ~ $#* 0) + exec aux/usage commit=$gitfs/HEAD if(~ $#query 1)