]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'nd/branch-v-alignment'
authorJunio C Hamano <gitster@pobox.com>
Fri, 7 Sep 2012 18:10:02 +0000 (11:10 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 7 Sep 2012 18:10:02 +0000 (11:10 -0700)
Output from "git branch -v" contains "(no branch)" that could be
localized, but the code to align it along with the names of branches
were counting in bytes, not in display columns.

* nd/branch-v-alignment:
  branch -v: align even when branch names are in UTF-8

1  2 
Documentation/revisions.txt
builtin/branch.c

Simple merge
index 3f341014aac26c78ef39b437d197e2f41567c023,4ec556fe18812167b8f3fb5884b71afede7b9bb1..297be4ec4075e7a5877366217d780d6c29b3271b
  #include "revision.h"
  #include "string-list.h"
  #include "column.h"
+ #include "utf8.h"
  
  static const char * const builtin_branch_usage[] = {
 -      "git branch [options] [-r | -a] [--merged | --no-merged]",
 -      "git branch [options] [-l] [-f] <branchname> [<start-point>]",
 -      "git branch [options] [-r] (-d | -D) <branchname>...",
 -      "git branch [options] (-m | -M) [<oldbranch>] <newbranch>",
 +      N_("git branch [options] [-r | -a] [--merged | --no-merged]"),
 +      N_("git branch [options] [-l] [-f] <branchname> [<start-point>]"),
 +      N_("git branch [options] [-r] (-d | -D) <branchname>..."),
 +      N_("git branch [options] (-m | -M) [<oldbranch>] <newbranch>"),
        NULL
  };