Re: [PATCH 3/4] stash: convert drop and clear to builtin
- From
Christian Couder <christian.couder@gmail.com>
- Date
- Mar 24, 2018, 18:22 UTC
- Message-ID
- <CAP8UFD2yudVPNya8sTTd5UUq7Doxp2VqSf+aCecJPHE_c1VoqA@mail.gmail.com>
- In-Reply-To
- <20180324173707.17699-4-joel@teichroeb.net>
Show 7 quoted lines
> + argv_array_pushl(&args, "reflog", "delete", "--updateref", "--rewrite", NULL);
> + argv_array_push(&args, info->revision);
> + ret = cmd_reflog(args.argc, args.argv, prefix);
> + if (!ret) {
> + if (!quiet) {
> + printf(_("Dropped %s (%s)\n"), info->revision, sha1_to_hex(info->w_commit.hash));
> + }The brackets are not needed.
> + } else {
> + return error(_("%s: Could not drop stash entry"), info->revision);
> + }