When reallocating commit arrays in `opts_add_commit` and `opts_add_refish`, respectively, we simply pass the const pointer to `xrealloc`. As `xrealloc` expects a non-const pointer, though, this will generate a warning with some compilers. Cast away the constness to silence compilers.
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
CMakeLists.txt | Loading commit data... | |
COPYING | Loading commit data... | |
README.md | Loading commit data... | |
add.c | Loading commit data... | |
blame.c | Loading commit data... | |
cat-file.c | Loading commit data... | |
checkout.c | Loading commit data... | |
clone.c | Loading commit data... | |
common.c | Loading commit data... | |
common.h | Loading commit data... | |
describe.c | Loading commit data... | |
diff.c | Loading commit data... | |
fetch.c | Loading commit data... | |
for-each-ref.c | Loading commit data... | |
general.c | Loading commit data... | |
index-pack.c | Loading commit data... | |
init.c | Loading commit data... | |
lg2.c | Loading commit data... | |
log.c | Loading commit data... | |
ls-files.c | Loading commit data... | |
ls-remote.c | Loading commit data... | |
merge.c | Loading commit data... | |
remote.c | Loading commit data... | |
rev-list.c | Loading commit data... | |
rev-parse.c | Loading commit data... | |
show-index.c | Loading commit data... | |
status.c | Loading commit data... | |
tag.c | Loading commit data... |