Re: [PATCH 2/6] Factorize shortening of notes refname for display.

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

Re: [PATCH 2/6] Factorize shortening of notes refname for display.

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:51:30

Johan Herland [off-list ref] writes:
On Saturday 18 June 2011, Yann Dirson wrote:
quoted
Signed-off-by: Yann Dirson <redacted>
---
 notes.c |   24 ++++++++++++++++--------
 notes.h |    7 +++++++
 2 files changed, 23 insertions(+), 8 deletions(-)

[...]

 /*
+ * Return a short name for a notes ref, suitable for display to the user.
+ *
+ * No copy is done, the return value is a pointer into the original string.
+ */
+const char *notes_ref_shortname(const char *ref);
+
+/*
Please include in the documentation what a NULL return means.

Otherwise the patch looks OK.
It may be just me, but every time somebody says Factorize, I find myself
looking for math textbook from middle school days, 12 = 2 * 2 * 3, etc.

Could we say Refactor instead pretty please?

Re: [PATCH 2/6] Factorize shortening of notes refname for display.

From: Yann Dirson <hidden>
Date: 2016-06-15 22:51:30

On Sun, Jun 19, 2011 at 03:51:34PM -0700, Junio C Hamano wrote:
Johan Herland [off-list ref] writes:
quoted
On Saturday 18 June 2011, Yann Dirson wrote:
quoted
Signed-off-by: Yann Dirson <redacted>
---
 notes.c |   24 ++++++++++++++++--------
 notes.h |    7 +++++++
 2 files changed, 23 insertions(+), 8 deletions(-)

[...]

 /*
+ * Return a short name for a notes ref, suitable for display to the user.
+ *
+ * No copy is done, the return value is a pointer into the original string.
+ */
+const char *notes_ref_shortname(const char *ref);
+
+/*
Please include in the documentation what a NULL return means.

Otherwise the patch looks OK.
It may be just me, but every time somebody says Factorize, I find myself
looking for math textbook from middle school days, 12 = 2 * 2 * 3, etc.

Could we say Refactor instead pretty please?
Well, factorizing is just one kind of code refactoring - but OK, I'll
do that ;)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help