Merge branch 'tk/stripspace'

The internal stripspace() function has been moved to where it
logically belongs to, i.e. strbuf API, and the command line parser
of "git stripspace" has been updated to use the parse_options API.

* tk/stripspace:
  stripspace: use parse-options for command-line parsing
  strbuf: make stripspace() part of strbuf
This commit is contained in:
Junio C Hamano
2015-10-26 15:55:20 -07:00
9 changed files with 115 additions and 100 deletions

View File

@ -592,7 +592,7 @@ static int edit_branch_description(const char *branch_name)
strbuf_release(&buf);
return -1;
}
stripspace(&buf, 1);
strbuf_stripspace(&buf, 1);
strbuf_addf(&name, "branch.%s.description", branch_name);
status = git_config_set(name.buf, buf.len ? buf.buf : NULL);