-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parameter -c is no longer repeatable #214
Comments
I'll take a look. Thank you for reporting this bug. |
I have the same problem with repeated |
Thank you |
Bisected using Git and
Good: both tabs have commit hashes visible |
I see two approaches a fix could take:
I'm not yet sure that Gtk can handle positional arguments. |
So I finally have got time to understand more the issue. First, indeed, The issueSo the
The way it worked, it seems that some options (such as This is how I use
But I wasn't able to repeat But now: how can we fix this? And/or is it fixable using the The suggested solutionThe So far, I am looking at then documentation here: https://amolenaar.pages.gitlab.gnome.org/pygobject-docs/Gio-2.0/class-Application.html#gi.repository.Gio.Application.add_main_option We've seen that the The issue would be that So we would have these use cases: # show the changes at rev 1.16
diffuse -c 1.16
# show the changes in file1 at rev 1.16
diffuse -c 1.16,FILE1
# works also with this syntax, but only with one file
diffuse -c 1.16 FILE1
# show the changes in file1 at rev 1.16, file2 at rev 2.3, and file3 at rev 24.3
diffuse -c 1.16,FILE1 -c 2.3,FILE2 -c 24.3,FILE3
# optional, we could add multiple files, maybe?
# show the changes in file1 and file2 at rev 1.16, and file3 at rev 24.3
diffuse -c 1.16,FILE1,FILE2 -c 24.3,FILE3 The issue would be for filenames with a Would it be acceptable? |
The issue with this solution, is that apparently, before, you could stack options until the code reached a file path, like that: # show the changes in FILE1 at rev 1.16 using UTF-8 encoding,
# and FILE2 at rev 2.3 using encoding US ASCII
diffuse -e utf8 -c 1.16 FILE1 -e us_ascii -c 2.3 FILE2 I wonder now if there were more options that could be stacked like that 😨 |
Just a quick note, I think you (@MightyCreak) are probably aware of it:
Also related are issue #190 and pull request #212 . In particular, |
Thanks for looking into it, @MightyCreak. I can say that your proposal here certainly would solve all our issues:
CVS just doesn't have a hash over multiple files, that means we kind of have to rely on this repeating -c solution. Currently we use Version 0.7.7 and in some cases Meld. Syntactically we do not have a strong opinion on how it should work. All suggestions we come up with, are of similar nature, maybe replacing the comma with a different character. |
Since I won't be able to fix this issue in a timely manner and that some people are blocked because of it, I am OK with putting back the old arguments system. If someone wants to take it. It would mean to revert the new argument management ( And ensure it works as before. Does someone wants to take a stab at it? I'll create an issue to try and have something a bit more standard, while keeping the same functionalities as before. |
We are working with a cvs Repository and have used diffuse for many years to view changes in commits. Since the release of Version 0.8.2 our tools no longer function as expected and we are forced to downgrade to the older version 0.7.7.
From our tools we are running:
diffuse -c 1.16 <file1_path> -c 2.3 <file2_path> -c 24.3 <file3_path>
In Version 0.7.7 this opens cvs File Version difference from 1.15 to 1.16 for file 1, from 2.2 to 2.3 for file 2 and so on.
In Version 0.8.2 this opens cvs File Version difference 24.2 to 24.3 for all the files, even if these Versions do not exist. And since it cannot find this version, it fails to show the diff.
This is on Fedora 38 and 37.
If this is the intended behavior after the upgrade, we would be very interested to know, how we can achieve a similar result.
Thank you for the help.
The text was updated successfully, but these errors were encountered: