SVN-CLEAN(1)

πŸ’… SVN-CLEAN πŸ’…

okay bestie, welcome to the svn-clean manual page, from the User Commands section, manual name SVN-CLEAN(1). pull up a chair, grab a snack πŸ“, we're gonna clean house.


✨ NAME ✨

svn-clean β€” wipes out unversioned files from your Subversion working copy. literally just yeets them. no cap. πŸ§ΉπŸ’€


🌸 SYNOPSIS 🌸

svn-clean [options] [directory or file ...]

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the vibe. svn-clean goes through the files and directories you hand it, recursively, and hunts down all the unversioned files and directories β€” meaning the ones that are not present in the Subversion repository. it's giving detective energy πŸ”. and once the scan is done? those files and directories get deleted. gone. periodt. πŸ’…

if you don't give it any file or directory at all, svn-clean just defaults to the current directory ("."). it's like, "fine, i'll do it myself" energy.

and here's the tea β˜•: svn-clean uses the SVN Perl modules if they are available. that route is much faster than parsing the output of the svn command-line client. so like, if you got the modules, you're speedrunning. ⚑


πŸ‘‘ OPTIONS πŸ‘‘

  • -e, --exclude β€” a regular expression for filenames to be excluded. for example, this command right here will skip files ending in ".zip":
svn-clean --exclude '\.zip$'

you can stack multiple exclude patterns, bestie. if at least one matches, then the file is skipped. for example, this next one skips files ending in ".jpg" or ".png":

svn-clean --exclude '\.jpg$' --exclude '\.png$'

and if you wanna skip the entire "build" subdirectory, it's giving:

svn-clean --exclude '^build(/|$)'

iconic behavior tbh. πŸŽ€

  • -f, --force β€” files you don't have delete access to (if you're running under VMS) or write access to (if you're running under another OS) will not be deleted unless you use this option. so like, no --force, no permission slip, no deletion. simple as. πŸ”₯
  • -N, --non-recursive β€” do not search recursively for unversioned files and directories. ⚠️ but heads up: unversioned directories will still be deleted along with all their contents. so it's non-recursive, but the directory goes down with everything inside it. it's giving "i'm not looking for trouble but trouble found me." 😭
  • -q, --quiet β€” do not print progress info. specifically, don't print a message each time a file is examined, giving the name of the file, and indicating whether "rmdir" or "unlink" is used to remove it, or that it's skipped. silent but deadly. 🀫
  • -p, --print β€” do not delete anything. instead, print the name of every file and directory that would have been deleted. it's the window-shopping version. πŸ›οΈβœ¨
  • -?, -h, --help β€” prints a brief help message and exits. your girl's got you. 🫢
  • --man β€” prints the manual page and exits. hi, that's this. you're here. πŸ’–

⭐ AUTHOR ⭐

Simon Perreault <nomis80@nomis80.org> β€” the mastermind behind all this. bow down. πŸ‘‘


okay that's the whole page, bestie, you ate that read πŸ“šβœ¨. this one's from User Commands, manual name SVN-CLEAN(1), dated 2025-04-06. go forth and clean your working copy, you main character. πŸŒˆπŸ¦‹πŸ’œ

πŸ“¦ where this page comes from