Merge branch 'jn/merge-diff3-label'
* jn/merge-diff3-label: merge-recursive: add a label for ancestor cherry-pick, revert: add a label for ancestor revert: clarify label on conflict hunks compat: add mempcpy() checkout -m --conflict=diff3: add a label for ancestor merge_trees(): add ancestor label parameter for diff3-style output merge_file(): add comment explaining behavior wrt conflict style checkout --conflict=diff3: add a label for ancestor ll_merge(): add ancestor label parameter for diff3-style output merge-file --diff3: add a label for ancestor xdl_merge(): move file1 and file2 labels to xmparam structure xdl_merge(): add optional ancestor label to diff3-style output tests: document cherry-pick behavior in face of conflicts tests: document format of conflicts from checkout -m Conflicts: builtin/revert.c
This commit is contained in:
@ -332,6 +332,7 @@ extern int git_vsnprintf(char *str, size_t maxsize,
|
||||
#ifdef __GLIBC_PREREQ
|
||||
#if __GLIBC_PREREQ(2, 1)
|
||||
#define HAVE_STRCHRNUL
|
||||
#define HAVE_MEMPCPY
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@ -345,6 +346,14 @@ static inline char *gitstrchrnul(const char *s, int c)
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_MEMPCPY
|
||||
#define mempcpy gitmempcpy
|
||||
static inline void *gitmempcpy(void *dest, const void *src, size_t n)
|
||||
{
|
||||
return (char *)memcpy(dest, src, n) + n;
|
||||
}
|
||||
#endif
|
||||
|
||||
extern void release_pack_memory(size_t, int);
|
||||
|
||||
extern char *xstrdup(const char *str);
|
||||
|
Reference in New Issue
Block a user