mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-06 19:37:29 +00:00

This is quite close to running "git for-each-ref" except: 1. It does not take any formatting or selection options at all. 2. The output is not sorted. I wrote it to look at debugging some issues with ref iteration, but there's no reason it can't live on as an example command.
17 lines
367 B
Makefile
17 lines
367 B
Makefile
.PHONY: all
|
|
|
|
CC = gcc
|
|
CFLAGS = -g -I../include -I../src -Wall -Wextra -Wmissing-prototypes -Wno-missing-field-initializers
|
|
LFLAGS = -L../build -lgit2 -lz
|
|
APPS = general showindex diff rev-list cat-file status log rev-parse init blame tag
|
|
APPS += for-each-ref
|
|
|
|
all: $(APPS)
|
|
|
|
% : %.c
|
|
$(CC) -o $@ common.c $(CFLAGS) $< $(LFLAGS)
|
|
|
|
clean:
|
|
$(RM) $(APPS)
|
|
$(RM) -r *.dSYM
|