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

Re: [PATCH] diff-highlight: split code into module

From
Jeff King <peff@peff.net>
Date
Jun 16, 2017, 04:31 UTC
Message-ID
<20170616043137.xqgxpnop2svqe6io@sigill.intra.peff.net>
In-Reply-To
<xmqqlgot12o4.fsf@gitster.mtv.corp.google.com>
On Thu, Jun 15, 2017 at 12:17:15PM -0700, Junio C Hamano wrote:
Show 19 quoted lines
> Junio C Hamano <gitster@pobox.com> writes:
> 
> >>  contrib/diff-highlight/.gitignore                  |  2 ++
> >>  .../{diff-highlight => DiffHighlight.pm}           | 40 +++++++++++++---------
> >>  contrib/diff-highlight/Makefile                    | 21 ++++++++++--
> >>  contrib/diff-highlight/README                      | 30 ++++++++++++++++
> >>  contrib/diff-highlight/diff-highlight.perl         |  8 +++++
> >>  5 files changed, 82 insertions(+), 19 deletions(-)
> >>  create mode 100644 contrib/diff-highlight/.gitignore
> >>  rename contrib/diff-highlight/{diff-highlight => DiffHighlight.pm} (91%)
> >>  mode change 100755 => 100644
> >>  create mode 100644 contrib/diff-highlight/diff-highlight.perl
> >
> > Do you want +x bit for the last one?  I could throw that bit in
> > while queuing if you want.
> 
> Ah, I do not think you want it, as this is not something to be
> executed as-is (it is a source file, which diff-highlight that is
> executable is made out of).

Yes, exactly. Although many of our .sh files, though generally "compiled" with the Makefile, still have the executable bit. I don't mind adding it if we'd rather follow that pattern in general.

-Peff
Previous: Junio C HamanoNext: Scott Baker
Message 4 of 5 in “diff-highlight: split code into module”
  1. diff-highlight: split code into moduleJeff King, Jun 15, 2017
  2. Junio C HamanoJun 15, 2017
  3. Junio C HamanoJun 15, 2017
  4. Jeff KingJun 16, 2017
  5. Scott BakerJun 15, 2017

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.