mirror of
https://github.com/git/git.git
synced 2026-03-17 12:10:08 +01:00
Merge branch 'master' into next
* master: remote-ext: do not segfault for blank lines Documentation/fast-import: capitalize beginning of sentence ll-merge: simplify opts == NULL case
This commit is contained in:
@@ -905,7 +905,7 @@ The `<dataref>` can be either a mark reference (`:<idnum>`)
|
||||
set previously or a full 40-byte SHA-1 of a Git blob, preexisting or
|
||||
ready to be written.
|
||||
|
||||
output uses the same format as `git cat-file --batch`:
|
||||
Output uses the same format as `git cat-file --batch`:
|
||||
|
||||
====
|
||||
<sha1> SP 'blob' SP <size> LF
|
||||
|
||||
@@ -212,16 +212,16 @@ static int command_loop(const char *child)
|
||||
char buffer[MAXCOMMAND];
|
||||
|
||||
while (1) {
|
||||
size_t length;
|
||||
size_t i;
|
||||
if (!fgets(buffer, MAXCOMMAND - 1, stdin)) {
|
||||
if (ferror(stdin))
|
||||
die("Comammand input error");
|
||||
exit(0);
|
||||
}
|
||||
/* Strip end of line characters. */
|
||||
length = strlen(buffer);
|
||||
while (isspace((unsigned char)buffer[length - 1]))
|
||||
buffer[--length] = 0;
|
||||
i = strlen(buffer);
|
||||
while (i > 0 && isspace(buffer[i - 1]))
|
||||
buffer[--i] = 0;
|
||||
|
||||
if (!strcmp(buffer, "capabilities")) {
|
||||
printf("*connect\n\n");
|
||||
|
||||
@@ -351,16 +351,13 @@ int ll_merge(mmbuffer_t *result_buf,
|
||||
const struct ll_merge_options *opts)
|
||||
{
|
||||
static struct git_attr_check check[2];
|
||||
static const struct ll_merge_options default_opts;
|
||||
const char *ll_driver_name = NULL;
|
||||
int marker_size = DEFAULT_CONFLICT_MARKER_SIZE;
|
||||
const struct ll_merge_driver *driver;
|
||||
|
||||
if (!opts) {
|
||||
struct ll_merge_options default_opts = {0};
|
||||
return ll_merge(result_buf, path, ancestor, ancestor_label,
|
||||
ours, our_label, theirs, their_label,
|
||||
&default_opts);
|
||||
}
|
||||
if (!opts)
|
||||
opts = &default_opts;
|
||||
|
||||
if (opts->renormalize) {
|
||||
normalize_file(ancestor, path);
|
||||
|
||||
Reference in New Issue
Block a user