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

Re: [PATCH/RFC 1/3] diffstat width: #define defaults in diff.h

From
Thiago Farina <tfransosi@gmail.com>
Date
Nov 29, 2010, 00:44 UTC
Message-ID
<AANLkTim6ddTgcYqfZQFK+wzYo2dm-nhVh-DFO5S3Ei4o@mail.gmail.com>
In-Reply-To
<4CF2EAD1.8030007@case.edu>
On Sun, Nov 28, 2010 at 9:50 PM, Matthew Ruffalo <mmr15@case.edu> wrote:
Show 12 quoted lines
> diff --git a/diff.h b/diff.h
> index 0083d92..7b509c5 100644
> --- a/diff.h
> +++ b/diff.h
> @@ -86,6 +86,9 @@ typedef struct strbuf *(*diff_prefix_fn_t)(struct
> diff_options *opt, void *data)
>  #define DIFF_XDL_SET(opts, flag)    ((opts)->xdl_opts |= XDF_##flag)
>  #define DIFF_XDL_CLR(opts, flag)    ((opts)->xdl_opts &= ~XDF_##flag)
>
> +#define DIFF_STAT_DEFAULT_WIDTH       80
> +#define DIFF_STAT_DEFAULT_NAME_WIDTH  50
> +
If this is only used in diff.c, can this be moved to diff.c instead?
Previous: Matthew Ruffalo
Message 2 of 2 in “diffstat width: #define defaults in diff.h”
  1. 1/3 diffstat width: #define defaults in diff.hMatthew Ruffalo, Nov 28, 2010
  2. Thiago FarinaNov 29, 2010

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.