qdiff: ability to set default value for "ignore whitespace"

Bug #878448 reported by Francois Trahan
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
QBzr
Confirmed
Wishlist
Unassigned

Bug Description

Every time I use qdiff, I have to change the tab size and switch on "Ignore whitespace changes". It would be interesting to have a mean of setting the defaults.

  bzr 2.4.1
  qbzr 0.21.1
  Python 2.7.1
  Platform: Linux-2.6.38-11-generic-x86_64-with-Ubuntu-11.04-natty

Revision history for this message
Alexander Belchenko (bialix) wrote : Re: [Bug 878448] [NEW] Feature : In qdiff, allow to configure defaut tab size and "ignore whitespace"

Francois Trahan пишет:
> Public bug reported:
>
> Every time I use qdiff, I have to change the tab size and switch on
> "Ignore whitespace changes". It would be interesting to have a mean of
> setting the defaults.

You can set the default tab size using qconfig.

You can set-up alias

qdiff = qdiff --ignore-whitespace

to have this option always on. I'm not sure is it worth to put that
one in the config though.

--
All the dude wanted was his rug back

Revision history for this message
Francois Trahan (francois-trahan) wrote : Re: Feature : In qdiff, allow to configure defaut tab size and "ignore whitespace"

Thanks for the tab with, I didn't realize it was actually there.

For the whitespace, the problem with aliases is that it is not reflected when you click your way to the diff dialog from another one (per example, when consulting the log via qlog). Changing aliases, custom tools and other stuff makes for a laborious switch between the two behaviours...

summary: - Feature : In qdiff, allow to configure defaut tab size and "ignore
- whitespace"
+ qdiff: ability to set default value for "ignore whitespace"
Changed in qbzr:
status: New → Confirmed
importance: Undecided → Wishlist
Revision history for this message
Chinoto Vokro (chinoto-gon) wrote :

Whenever I look at a qdiff, I always turn on --ignore-whitespace (-w), it helps a lot when I decide to fix the indentation on large chunks of code.
Somewhat related: qdiff crashes if you toggle ignore-whitespace before it is done generating a diff. It doesn't matter when run from terminal since I can specify "-w", but I have to wait when invoking it from [qlog, qcommit, qrevert] to avoid crashing it, which can take awhile if there are a lot of changes. Though the bug itself should be fixed, it would be enough for me to be able to set a default for ignore-whitespace.

openSUSE 12.2
qbzr | 0.21.1-1.1 | x86_64 | devel:tools:scm
I know there are newer versions, but there aren't in openSUSE's repos yet.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.