patchedit(1)

✨ patchedit(1) ✨

okay bestie, so this is a page from the Debian Perl packaging Tools manual, and it's called patchedit. it lives in section 1 of the man pages, aka the "commands you actually type" section πŸ’…. buckle up, it's DEP3 o'clock πŸ¦‹


🌸 NAME 🌸

patchedit β€” edit the headers of a patch so they follow DEP3 πŸ’–


πŸŽ€ SYNOPSIS πŸŽ€

patchedit [command] patchfile

πŸ’œ DESCRIPTION πŸ’œ

patchedit is a little helper script whose whole personality is managing patch headers according to <http://dep.debian.net/deps/dep3/> ✨. that's it, that's the job, she's a headers girlie πŸ’…


πŸ‘‘ COMMANDS πŸ‘‘

  • edit (and this is the default, so she's the main character) β€” opens patchfile in EDITOR (or VISUAL or sensible-editor, she'll ask all three, no cap), and then:
    • checks all headers πŸ‘€
    • marks problems 🚩
    • adds the missing required headers, and yes she comes with proposals for their values, she's thoughtful like that 🫢

and if you don't give her any command at all? edit gets chosen automatically, periodt.

  • check β€” does a non-interactive check to see whether the headers actually conform to DEP3. prints the results to stdout: missing required headers, wrong values, that kind of drama πŸ’€.

πŸ’– ARGUMENTS πŸ’–

  • patchfile (required) β€” the patch you want to work on. she's not optional bestie, you have to give her one 🌸

✨ OPTIONS ✨

  • -f, --fix β€” tries to fix problems in the headers when editing/checking patches πŸ”§
  • -o, --optional β€” also add/print missing optional headers ✨
  • -h, --help β€” help output, for when you forgot how she works πŸ™ˆ

🌈 ENVIRONMENT 🌈

patchedit respects DEBEMAIL (or EMAIL) and DEBFULLNAME β€” those are the ones she uses for new Author or Reviewed-by headers πŸ’Œ.


🧚 NOTE 🧚

This script is not pkg-perl specific. It should go into devscripts eventually β€” she's got bigger dreams than her current repo, honestly πŸ¦‹


πŸ“ TODO πŸ“

  1. preserve the extra fields
  2. preserve the order of the fields

(she knows. she's working on it. give her time 😭)


Copyright 2010, Jozef Kutej <jkutej@cpan.org>.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. πŸͺ


and that's the whole page, bestie!! this little cutie came to you from pkg-perl-tools 0.88, dated 2026-04-01, filed under patchedit(1). go check those headers, they're not gonna DEP3 themselves πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from