Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 25873 - When using etc-update without a pager it's hard to see which files are being diffed
Summary: When using etc-update without a pager it's hard to see which files are being ...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-04 07:49 UTC by Richard Watson
Modified: 2011-10-30 22:20 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Shows names of diffed files below diff output as well as above (etc-update.patch,326 bytes, text/plain)
2003-08-04 07:53 UTC, Richard Watson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Watson 2003-08-04 07:49:17 UTC
Using etc-update to update a large amount of config files, it's often easiest to
use it in menu mode without a pager, but just to hit return to go through each
file individually. 

However if the list of files is long the user won't know which file they are
editing, and if the diff is long, the name would have shot off the top of the
screen. The attached simple diff is one obvious workaround/fix.  All it does is
print the "Showing  differences between" line at the bottom of the diff output
as well as the top, if no pager has been selected. I think this makes it easier
to merge trivial changes to files that the user isn't interested in.


Reproducible: Always
Steps to Reproduce:
1. Run etc-update on some longer files in menu mode
2.
3.

Actual Results:  
Can't see the names of the files that are being diffed currently.

Expected Results:  
Show the names of the files nearer to the text input prompt.
Comment 1 Richard Watson 2003-08-04 07:53:48 UTC
Created attachment 15479 [details]
Shows names of diffed files below diff output as well as above
Comment 2 Jason A. Mobarak (RETIRED) gentoo-dev 2003-08-04 08:06:43 UTC
Without a pager can't shift+pgup be used to scroll the terminal up to top of the diff? This is kind of an aesthetic bug but worth considering.
Comment 3 Jason A. Mobarak (RETIRED) gentoo-dev 2003-08-04 08:21:48 UTC
Fixed in CVS.