diff options
author | Philipp A. Hartmann <pah@qo.cx> | 2012-08-23 18:57:45 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-08-24 11:18:31 -0700 |
commit | 0e7afb18cb354c0860f5db33996ddaf58c2af49d (patch) | |
tree | e449e4f0219ff9876c8a5b25117511b70df399b5 /contrib/credential/gnome-keyring/Makefile | |
parent | Git 1.7.12 (diff) | |
download | tgif-0e7afb18cb354c0860f5db33996ddaf58c2af49d.tar.xz |
contrib: add credential helper for GnomeKeyring
With this installed in your $PATH, you can store
git-over-http passwords in your keyring by doing:
git config credential.helper gnome-keyring
The code is based in large part on the work of John Szakmeister
who wrote the helper originally for the initial, unpublished
version of the credential helper protocol.
This version will pass t0303 if you do:
GIT_TEST_CREDENTIAL_HELPER=gnome-keyring \
./t0303-credential-external.sh
Signed-off-by: Philipp A. Hartmann <pah@qo.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/credential/gnome-keyring/Makefile')
-rw-r--r-- | contrib/credential/gnome-keyring/Makefile | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/contrib/credential/gnome-keyring/Makefile b/contrib/credential/gnome-keyring/Makefile new file mode 100644 index 0000000000..e6561d8db6 --- /dev/null +++ b/contrib/credential/gnome-keyring/Makefile @@ -0,0 +1,24 @@ +MAIN:=git-credential-gnome-keyring +all:: $(MAIN) + +CC = gcc +RM = rm -f +CFLAGS = -g -O2 -Wall + +-include ../../../config.mak.autogen +-include ../../../config.mak + +INCS:=$(shell pkg-config --cflags gnome-keyring-1) +LIBS:=$(shell pkg-config --libs gnome-keyring-1) + +SRCS:=$(MAIN).c +OBJS:=$(SRCS:.c=.o) + +%.o: %.c + $(CC) $(CFLAGS) $(CPPFLAGS) $(INCS) -o $@ -c $< + +$(MAIN): $(OBJS) + $(CC) -o $@ $(LDFLAGS) $^ $(LIBS) + +clean: + @$(RM) $(MAIN) $(OBJS) |