Sha256: fa7c4fa3d3178308dc47347c1c0d2c59c242173e01b35e9da1594b6b1a84821d

Contents?: true

Size: 447 Bytes

Versions: 8

Compression:

Stored size: 447 Bytes

Contents

/*
 * Copyright (C) the libgit2 contributors. All rights reserved.
 *
 * This file is part of libgit2, distributed under the GNU GPL v2 with
 * a Linking Exception. For full terms see the included COPYING file.
 */

#include "cli.h"
#include "cmd.h"

const cli_cmd_spec *cli_cmd_spec_byname(const char *name)
{
	const cli_cmd_spec *cmd;

	for (cmd = cli_cmds; cmd->name; cmd++) {
		if (!strcmp(cmd->name, name))
			return cmd;
	}

	return NULL;
}

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rugged-1.7.2 vendor/libgit2/src/cli/cmd.c
rugged-1.6.5 vendor/libgit2/src/cli/cmd.c
rugged-1.7.1 vendor/libgit2/src/cli/cmd.c
rugged-1.6.3 vendor/libgit2/src/cli/cmd.c
rugged-1.6.2 vendor/libgit2/src/cli/cmd.c
rugged-1.5.1 vendor/libgit2/src/cli/cmd.c
rugged-1.5.0.1 vendor/libgit2/src/cli/cmd.c
rugged-1.5.0 vendor/libgit2/src/cli/cmd.c