Something went wrong. Try again.
my code lab
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116* skip commits that are both empty and undescribedAn empty commit with no description (typically the working-copyplaceholder) exports as a blank patch the reviewer must ignore, soit is skipped and does not count toward =[PATCH n/m]= numbering.Kept: empty commits WITH a description (the message carriesintent), and undescribed commits WITH changes (the diff isreviewable). Implemented as a template filter in the commitlisting, leaving the operator's revset untouched.
* project lives in src/diffwise; commits prefixed diffwise:The project moved from =wip/= to =src/diffwise/=, and history wasrewritten so every commit adds files there from the start. Commitsubjects use the =diffwise:= area prefix. Commits are ordered bysense rather than strict creation time: doc commits stay separatefrom the diffwise series, which is contiguous - spec first, thenthe tool slices in dependency order.
* -n is a dry runPrint the patch file names that would be written without writingthem or creating the output directory. Lets the operator check arevset before littering the directory with wrong guesses.
* no help subcommand: usage on error, man page for the restSupersedes the earlier --help -> help decision. Single-command baseutilities have no help command; pkg has one because it is asubcommand suite. On a usage error diffwise prints the error andthe usage synopsis to stderr (the style(9) usage() convention),which surfaces the synopsis at exactly the moment it is needed. Theman page is the standalone reference. The style guide now saysthis; help subcommands are reserved for subcommand suites.
* feedback features get their own commitsUser: work was collapsing into one giant commit despite theincremental process. "Rewrite as though the feedback had been thereall along" applies to corrections (naming, style, fixing how aslice should have been built) - new behaviors are new thin verticalslices with their own commits. History restructured accordingly:base tool, default revset with -r, committer headers, -o flag,-n dry run - each with its tests and man page delta.
* no --help: long options are not FreeBSD styleUser: =--help= violated the CLI rules - long options are a GNUconvention. The =--help= handling had also required a special casebefore =getopts=, since =getopts= cannot parse long options - asmell that pointed at the mistake. Briefly replaced with a helpsubcommand, later dropped entirely (see newer entry).
* patches always show Committer / Committer-Date headersCommitter can differ from author (applying a patch on someoneelse's behalf), so every patch carries =Committer:= and=Committer-Date:= headers after =From:=/=Date:=. Always shown, notonly when different, per user's lean plus:- deterministic layout is easier for future tooling (review agent, emacs) to parse- in jj the committer timestamp changes on every rewrite, so "only when different" would either fire nearly always (dates counted) or need a fuzzy same-person rule (dates ignored)The author/committer distinction is standard git; what isnonstandard is carrying committer info in a patch file. gitformat-patch never emits it because whoever applies the patchbecomes the committer, so =git mailinfo= only knowsFrom/Date/Subject and skips other headers. Consequently the=Committer:=/=Committer-Date:= lines are informational for thereviewer; a =git am= round-trip still applies cleanly (verified)with the applier as committer, which is the correct git semantic.
* default revset is '::@ & mutable()', overridden with -rThe revset is no longer a positional argument. With no arguments=diffwise= exports the working copy and its mutable ancestors;=-r revset= selects something else. Positional arguments are now ausage error. Spec'd by user in =agents.org=; history rewritten sothe interface was always flag-based.
* man page follows pkg-family idiomsUser found phrasing like "The options are as follows" weird andpointed at the pkg-related man pages as the style reference.Adopted from them:- a dedicated =OPTIONS= section opening with "The following options are supported by .Nm:", instead of an options list inside =DESCRIPTION=- behavior described as prose paragraphs in =DESCRIPTION= (the bullet list of patch-file parts became a sentence)- examples as =.Dl % command= with a =%= prompt- meaningful =.Bl -tag= widths (e.g. =-width "-o directory"=)Kept =EXIT STATUS= (=.Ex -std=) even though pkg pages lack it - itis standard mdoc and the operator needs it.
* tool is named diffwiseInitially committed under the placeholder name =review=; user renamedit =diffrev=, then settled on =diffwise= before the rename landed.History was rewritten so the tool is =diffwise= from the start(files =diffwise=, =diffwise.1=, =diffwise_test=; kyua suite=diffwise=).
* end-state scope stays minimal; future work lives in agents.orgNo cover letter, diffstat, or reroll numbering for now. Planneditems are tracked under =* future work= in =agents.org= (currently:cover letter, interdiff) and will define the next end-state man pagegap when picked up. The separate end-state man page file(=review.1.goal=) was a model invention to materialize thedoc-driven-development gap; it was deleted since it had becomeidentical to the committed man page. An end-state draft will bereintroduced only when a real gap exists.
* planning artifacts are not committed=model-comm.org=, =decisions.org=, and any end-state man page draftremain uncommitted pending changes; delivered commits contain onlythe tool, its tests, and its man page.
* patch format is generated purely with jj, no gitHeaders come from =jj log= templates (mbox =From= line with commitid, =From:=/=Date:=/=Subject:=), the body from the =description=template, the diff from =jj diff --git=. The layout mirrors gitformat-patch closely enough that =git am= applies the output withauthor, subject, body, and content intact (verified).