Skip to content

Commit 76c5e9d

Browse files
committed
Merge branch 'hv/bitshift-constants-in-blame' into jch
Move the definition of a set of bitmask constants from 0ctal literal to (1U<<count) notation. * hv/bitshift-constants-in-blame: builtin/blame.c: constants into bit shift format
2 parents 82c7ec4 + 8679577 commit 76c5e9d

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

builtin/blame.c

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -319,18 +319,18 @@ static const char *format_time(timestamp_t time, const char *tz_str,
319319
return time_buf.buf;
320320
}
321321

322-
#define OUTPUT_ANNOTATE_COMPAT 001
323-
#define OUTPUT_LONG_OBJECT_NAME 002
324-
#define OUTPUT_RAW_TIMESTAMP 004
325-
#define OUTPUT_PORCELAIN 010
326-
#define OUTPUT_SHOW_NAME 020
327-
#define OUTPUT_SHOW_NUMBER 040
328-
#define OUTPUT_SHOW_SCORE 0100
329-
#define OUTPUT_NO_AUTHOR 0200
330-
#define OUTPUT_SHOW_EMAIL 0400
331-
#define OUTPUT_LINE_PORCELAIN 01000
332-
#define OUTPUT_COLOR_LINE 02000
333-
#define OUTPUT_SHOW_AGE_WITH_COLOR 04000
322+
#define OUTPUT_ANNOTATE_COMPAT (1U<<0)
323+
#define OUTPUT_LONG_OBJECT_NAME (1U<<1)
324+
#define OUTPUT_RAW_TIMESTAMP (1U<<2)
325+
#define OUTPUT_PORCELAIN (1U<<3)
326+
#define OUTPUT_SHOW_NAME (1U<<4)
327+
#define OUTPUT_SHOW_NUMBER (1U<<5)
328+
#define OUTPUT_SHOW_SCORE (1U<<6)
329+
#define OUTPUT_NO_AUTHOR (1U<<7)
330+
#define OUTPUT_SHOW_EMAIL (1U<<8)
331+
#define OUTPUT_LINE_PORCELAIN (1U<<9)
332+
#define OUTPUT_COLOR_LINE (1U<<10)
333+
#define OUTPUT_SHOW_AGE_WITH_COLOR (1U<<11)
334334

335335
static void emit_porcelain_details(struct blame_origin *suspect, int repeat)
336336
{

0 commit comments

Comments
 (0)