]> git.proxmox.com Git - libgit2.git/commit - src/reflog.c
reflog: make entry_byindex() and drop() git compliant
authornulltoken <emeric.fermas@gmail.com>
Sun, 18 Nov 2012 02:29:51 +0000 (18:29 -0800)
committernulltoken <emeric.fermas@gmail.com>
Sun, 18 Nov 2012 02:30:35 +0000 (18:30 -0800)
commitb15df1d937128bb7051ab35084195ff1980a7869
treeccac67d86df9f6f8f2276d2b4f4b43555e99b20e
parent1a764476d27ac1861d1433b02bc7fbff733d8942
reflog: make entry_byindex() and drop() git compliant

Passing 0 as the index now retrieves the most recent entry instead
of the oldest one.
include/git2/reflog.h
src/reflog.c
src/revparse.c
src/stash.c
tests-clar/refs/reflog/drop.c
tests-clar/refs/reflog/reflog.c
tests-clar/stash/drop.c