diff options
author | 2017-11-28 14:40:26 -0400 | |
---|---|---|
committer | 2017-11-28 15:14:16 -0400 | |
commit | 699611cde5cda8b2f2d83a6d6ac9c1e575b74f51 (patch) | |
tree | b502247490779aca8068684a3be42791050eff7b /Command/Wanted.hs | |
parent | bf5de3a6f3d50028f7ac47c6cde759a6f5110b08 (diff) |
showStart variant for when there's no worktree file
Clean up some uses of showStart with "" for the file,
or in some cases, a non-filename description string. That would
generate bad json, although none of the commands doing that
supported --json.
Using "" for the file resulted in output like "foo rest";
now the extra space is eliminated.
This commit was sponsored by Fernando Jimenez on Patreon.
Diffstat (limited to 'Command/Wanted.hs')
-rw-r--r-- | Command/Wanted.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Command/Wanted.hs b/Command/Wanted.hs index fc1fa86bd..ac4175ecd 100644 --- a/Command/Wanted.hs +++ b/Command/Wanted.hs @@ -35,7 +35,7 @@ cmd' name desc getter setter = noMessages $ start (rname:[]) = go rname (performGet getter) start (rname:expr:[]) = go rname $ \uuid -> do allowMessages - showStart name rname + showStart' name (Just rname) performSet setter expr uuid start _ = giveup "Specify a repository." |