[revparse] improve codes
improve codes
improve codes
[reflog] implement git_reflog_entry_byindex
rename harcoded value to macro
rename harcoded value to macro
refactor objects
fix warnings