git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 0/6] Tracking setup improvements: per-remote config, autosetuppush

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 12, 2009, 21:17 UTC
Message-ID
<7vskh1lhxk.fsf@alter.siamese.dyndns.org>
In-Reply-To
<1247401053-20429-1-git-send-email-bonzini@gnu.org>

I haven't read any of these patches, other than applying them on top of master and looking at the resulting diff in the t/ directory in the aggregated form, and also noticing some style deviations in the C code.

The new tests not only check that the commands leave expected results in the cases where these new variables are set (with or without command line overrides), but also seem to have checks to see if the commands behave the same way as before unless the new configuration variables are used.

It is very understandable for any developers (including me) to want to demonstrate that their shiny new toys work as they specified, and writing the positive tests (i.e. "does the feature kick in when the user does what the manual says, and does it leave the expected result?") is a very good discipline to protect the new features from future breakages.

But at the same time, we (again, including me) tend to forget the importance about negative tests (e.g. "does the feature refrain from kicking in when the user does not do what the additional part of the manual says, iow, uses the traditional way of running the commands, and does it leave the expected result without the new feature's effect?") because (1) it is rather boring, and (2) we believe too much in ourselves' ability not to break things.

So I already am liking the series even before reading a single line of code. Makes me hope that the changes are done with the same carefulness as the tests ;-).

Previous: Paolo Bonzini
Message 8 of 8 in “Tracking setup improvements: per-remote config, autosetuppush”
  1. 0/6 Tracking setup improvements: per-remote config, autosetuppushPaolo Bonzini, Jul 12, 2009
  2. 1/6 config: allow false and true values for branch.autosetuprebasePaolo Bonzini, Jul 12, 2009
  3. 2/6 branch: install_branch_config and struct tracking refactoringPaolo Bonzini, Jul 12, 2009
  4. 3/6 introduce a struct tracking_configPaolo Bonzini, Jul 12, 2009
  5. 4/6 remote: add per-remote autosetupmerge and autosetuprebase configurationPaolo Bonzini, Jul 12, 2009
  6. 5/6 move deletion of merge configuration to branch.cPaolo Bonzini, Jul 12, 2009
  7. 6/6 branch, checkout: introduce autosetuppushPaolo Bonzini, Jul 12, 2009
  8. Junio C HamanoJul 12, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.