author | Junio C Hamano <junkio@cox.net> | |
Fri, 19 Jan 2007 09:19:05 +0000 (01:19 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sat, 20 Jan 2007 01:57:53 +0000 (17:57 -0800) | ||
commit | 16d7cc90dd6e68a170362ae6f0fbfbc504fd246b | |
tree | 6675317cbe5a1d8017d1c7856fd3ac430debd247 | tree | snapshot |
parent | e86eb6668ee0c574ba0b6c2c94564d4159a6fcc7 | commit | diff |
Extend read_ref_at() to be usable from places other than sha1_name.
You can pass an extra argument to the function to receive the
reflog message information. Also when the log does not go back
beyond the point the user asked, the cut-off time and count are
given back to the caller for emitting the error messages as
appropriately.
We could later add configuration for get_sha1_basic() to make it
an error instead of it being just a warning.
Signed-off-by: Junio C Hamano <junkio@cox.net>
You can pass an extra argument to the function to receive the
reflog message information. Also when the log does not go back
beyond the point the user asked, the cut-off time and count are
given back to the caller for emitting the error messages as
appropriately.
We could later add configuration for get_sha1_basic() to make it
an error instead of it being just a warning.
Signed-off-by: Junio C Hamano <junkio@cox.net>
refs.c | diff | blob | history | |
refs.h | diff | blob | history | |
sha1_name.c | diff | blob | history | |
t/t1400-update-ref.sh | diff | blob | history |