- Add examples showing the use of -f, -C, -s, -n
- Rework the two already present examples that were *format* examples
- Remove .Tn suggested by mandoc(1)
- Remove reference to gdb(1) since it is not present in current
Details
- Reviewers
gbe - Group Reviewers
manpages - Commits
- rS362783: hexdump(1): Add EXAMPLES section
- mandoc -Tlint clean
- igor clean (except for an spurious "repeted [e e]" in "FreeBSD"
- aspell happy
- man ./hexdump.1 renders the page properly
The new additions respect the 80 columns limit on source although it exceeds
that when visualizing the man page. Due to how hexdump(1) shows the information
it is difficult to get a meaningful example and complying with that limit
during visualization. Anyway, I'm open to rework this if necessary.
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 32037 Build 29565: arc lint + arc unit
Event Timeline
Thanks for the patch!
Everything looks good except the manpage date, which should be bumped. :)
Hi Gordon,
Thanks for reviewing this!
I usually bump .Dd when I commit the review (although I know it is a risk because I could forget it). As a general rule, should the manpage date and the commit date be equal?
Hi Fernando,
not necessarily, I personally set the .Dd to the date I wrote the update, otherwise the workflow would be a little different,
because you theoretically commit something that wasn't approved. After an approval I just download the raw diff an apply it to my
local svn checkout.
@bcr what do you think?
From my perspective everything is okay. I tried the examples on the command line and they worked, I also checked mandoc -Tlint output and so on. :)
How would commit hook differentiate when .Dd bump is needed (that is, because of functional or otherwise significant changes) and when it's not (for typos and small markup fixes and such)?
It's hard to know when we reach the threshold of a meaningful change.
Do you do the date in the current timezone, or the date in UTC?
when commits are approved that already have a date in them, it's understood that it can change w/o new approval to a more appropriate date...
However having said that, it doesn't matter that much: a day or even 10 days in the past when committed is fine. It doesn't have to match the commit date, just be (a) newer than the last date and (b) be close enough to today. I've often committed things from a branch that have commit dates a few days in the past due to other issues with the string of patches taking a day or three to iron out (and then forgetting). The consequences of a date that's off a few days generally don't matter, so it's best not to sweat it too much if there's an oops or you want to commit 'as tested' code.... igor warns about it :)
Since it doesn't matter that much, and it's hard to implement, nobody has tried.
Anyway, all imho...