Re: [PATCH/RFC v3 3/3] branch: add copy branch feature implementation
- From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
- Date
- Jun 1, 2017, 18:59 UTC
- Message-ID
- <CACBZZX66dbdxuMx4EWdxYdRiMpBbXSbBCsmEO9uiEZYyyOmnDw@mail.gmail.com>
- In-Reply-To
- <0102015c64f0dd99-a702d419-2bbb-48a3-b541-296011972e7d-000000@eu-west-1.amazonses.com>
On Thu, Jun 1, 2017 at 8:35 PM, Sahil Dua <sahildua2305@gmail.com> wrote:
> Adds copy branch option available using -c or -C (forcefully).
Commenting on the series in general. I have a fixup branch for you with commits to squash: https://github.com/avar/git/tree/avar/sahildua-rename-branch-2 issues:
- There's a mixed variable declaration with code, should be predeclared.
- Stuff like printf(_("% branch), "copied") gives bad translations,
needs to be expanded
- Fixed up comment styleIn addition when I try to run the tests I get:
fatal: cannot lock ref 'refs/heads/a': 'refs/heads/a/b/c' exists;
cannot create 'refs/heads/a'
not ok 45 - git branch -c a a/a should failAnd there's 18 other failures in that test script, although some could be from that first failure, doesn't this fail for you? I can't see why it wouldn't everywhere, i.e. you're trying to create a "a" ref when "a/b/c" exists.