Re: [PATCH v15 04/16] Refactor quote_path_relative, remove unused params

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

Re: [PATCH v15 04/16] Refactor quote_path_relative, remove unused params

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:57:56

Jiang Xin [off-list ref] writes:
After substitute path_relative() in quote.c with relative_path() from
path.c, parameters (such as len and prefix_len) are obsolete in function
quote_path_relative(). Remove unused parameters and change the order of
parameters for quote_path_relative() function.

Signed-off-by: Jiang Xin <redacted>
Signed-off-by: Junio C Hamano <redacted>
---
OK.  I'll amend the log message a bit to say that we verified that
this conversion is safe.
quoted hunk
diff --git a/quote.c b/quote.c
index 64ff3..ebb8 100644
You seem to be using unusually short abbrev length.

Please don't, at least in format-patch output.

"ebb8" may be unique within your repository, but may not be unique
in repositories of other people who attempt to apply your patches.

Offtopic.  Fixing this, without forcing you to use the default
abbrev length everywhere, _might_ require a bit of changes to the
configuration mechanism, or "git format-patch", or both.  I've also
seen in some other thread that --numstat was used in addition to the
usual --stat, which should not be added to format-patch output only
because the user configured it for other "diff/log" uses, which may
also need to be fixed in the same way.

Re: [PATCH v15 04/16] Refactor quote_path_relative, remove unused params

From: Jiang Xin <hidden>
Date: 2016-06-15 22:57:56

2013/6/27 Junio C Hamano [off-list ref]:
quoted
diff --git a/quote.c b/quote.c
index 64ff3..ebb8 100644
You seem to be using unusually short abbrev length.

Please don't, at least in format-patch output.

"ebb8" may be unique within your repository, but may not be unique
in repositories of other people who attempt to apply your patches.

Offtopic.  Fixing this, without forcing you to use the default
abbrev length everywhere, _might_ require a bit of changes to the
configuration mechanism, or "git format-patch", or both.  I've also
seen in some other thread that --numstat was used in addition to the
usual --stat, which should not be added to format-patch output only
because the user configured it for other "diff/log" uses, which may
also need to be fixed in the same way.
Thank you for your notice. I find that I have a setting: core.abbrev=4,
which overrides the default. Maybe I set it two years ago, when I wrote
my book on Git in Chinese.

-- 
Jiang Xin
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help