Re: [RFC PATCH v3 00/12] several notes refs, post-rewrite, notes rewriting

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Junio C Hamano
Date: Saturday, February 20, 2010 - 8:47 pm

Thomas Rast <trast@student.ethz.ch> writes:


Probably not.

I like the general direction in which this series is going, but a config
that does not have any command line counterpart is a design mistake.

When adding a feature, always start from the command line option, and then
add configuration mechanism purely as a convenience (so that users do not
have to give the same option every time they run the command).  By forcing
yourself to stick to that design pattern, it is easier to ensure that any
new feature can be disabled by people who do not want it from the command
line.


Hmm; if this will _always_ be limited to "git notes" command and no other
commands will _ever_ learn a command line option to override what notes
namespace to use in the future, then "--ref" is perfectly a good name.
But otherwise, "git log --ref=notes/amlog" would look _very wrong_, and
would end up being called "git log --notes-ref=notes/amlog" instead.  When
that happens, "git notes --ref=notes/amlog" would look inconsistent and
people will complain, no?

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC PATCH 0/6] post-rewrite hook and copying notes, Thomas Rast, (Sun Feb 14, 9:17 am)
[RFC PATCH 4/6] rebase: invoke post-rewrite hook, Thomas Rast, (Sun Feb 14, 9:17 am)
[RFC PATCH 5/6] rebase -i: invoke post-rewrite hook, Thomas Rast, (Sun Feb 14, 9:17 am)
[PATCH] WIP: git notes copy --stdin, Thomas Rast, (Sun Feb 14, 2:46 pm)
Re: [PATCH] WIP: git notes copy --stdin, Johan Herland, (Sun Feb 14, 6:25 pm)
[RFC PATCH v2 03/11] rebase: invoke post-rewrite hook, Thomas Rast, (Tue Feb 16, 4:25 pm)
[RFC PATCH v2 05/11] notes: clean up t3301, Thomas Rast, (Tue Feb 16, 4:26 pm)
Re: [RFC PATCH v2 05/11] notes: clean up t3301, Junio C Hamano, (Tue Feb 16, 4:52 pm)
[RFC PATCH v3 04/12] rebase: invoke post-rewrite hook, Thomas Rast, (Sat Feb 20, 3:16 pm)
Re: [RFC PATCH v3 00/12] several notes refs, post-rewrite, ..., Junio C Hamano, (Sat Feb 20, 8:47 pm)
[PATCH v4 05/11] rebase: invoke post-rewrite hook, Thomas Rast, (Sun Feb 21, 5:10 pm)
[PATCH v4 06/11] rebase -i: invoke post-rewrite hook, Thomas Rast, (Sun Feb 21, 5:10 pm)
[PATCH v5 05/11] rebase: invoke post-rewrite hook, Thomas Rast, (Mon Feb 22, 5:42 pm)
[PATCH v5 06/11] rebase -i: invoke post-rewrite hook, Thomas Rast, (Mon Feb 22, 5:42 pm)
Re: [PATCH v5 06/11] rebase -i: invoke post-rewrite hook, Junio C Hamano, (Tue Feb 23, 11:15 pm)
[PATCH v6 05/13] rebase: invoke post-rewrite hook, Thomas Rast, (Wed Mar 10, 7:05 am)
[PATCH v6 06/13] rebase -i: invoke post-rewrite hook, Thomas Rast, (Wed Mar 10, 7:05 am)
[PATCH v7 00/13] tr/display-notes, Thomas Rast, (Fri Mar 12, 10:04 am)
[PATCH v7 06/13] rebase -i: invoke post-rewrite hook, Thomas Rast, (Fri Mar 12, 10:04 am)