Hi all,

I have a feature request about diff/gdiff when calling an external program
with multiple files.

In a particular case where, let say there's 40 modified files and you
execute:
    $ fossil gdiff

without specifying any file, fossil will spawn the external diff program
(vimdiff in my case) on all changed files one by one. Which if a very nice
feature. But in the case I want to cancel, I have to exit vimdiff for all
the 40 files.

I propose a very simple fix, that would work (at least for vim users). In
vim, if I exit using ":cq" instead of ":q", vim exit without saving and
return error. So in that case, fossil could check at return value of the
diff program process and cancel diffing of other files when the diff
program return with error.

In same time, probably we don't want to continue to start the external diff
program for all other files after it return error once.

May be a more universal solution might work with any other external diff
programs ? Like prompting between every diff program execution a kind
message like:
  "39 more files to compare, do you want to continue (y)es / (n)o / (a)ll ?
 [y]:

What do you think ?

Regards

-- 
Martin G.
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to