Thread (54 messages) 54 messages, 10 authors, 2016-06-15

Re: [PATCH 14/16] refs: allow ref backend to be set for clone

flat view

From: Eric Sunshine <hidden>
Date: 2016-06-15 23:07:33

On Wed, Dec 23, 2015 at 8:51 AM, Michael Haggerty [off-list ref] wrote:
On 12/03/2015 01:35 AM, David Turner wrote:
quoted
+     if (refs_backend_type && *refs_backend_type) {
+             argv_array_push(&cp.args, "--refs-backend-type");
+             argv_array_push(&cp.args, refs_backend_type);
+     }
This could be shortened to

    argv_array_pushf(&cp.args, "--refs-backend-type=%s", refs_backend_type);
Or, without interpolation:

    argv_array_pushl(&cp.args, "--refs-backend-type", refs_backend_type, NULL);
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help