Staging
v0.8.1
https://github.com/git/git
Revision eb3204dfbb71626f83a95d2ab24569226a39c601 authored by Nicolas Pitre on 26 January 2007, 16:50:06 UTC, committed by Junio C Hamano on 27 January 2007, 06:38:00 UTC
Doing:

$ git checkout HEAD^

Generates the following message:

|warning: you are not on ANY branch anymore.
|If you meant to create a new branch from the commit, you need -b to
|associate a new branch with the wanted checkout.  Example:
|  git checkout -b <new_branch_name> HEAD^

Of course if the user does as told at this point the created branch
won't be located at the expected commit.  Reword this message a bit to
avoid such confusion.

Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
1 parent d848804
Raw File
Tip revision: eb3204dfbb71626f83a95d2ab24569226a39c601 authored by Nicolas Pitre on 26 January 2007, 16:50:06 UTC
fix suggested branch creation command when detaching head
Tip revision: eb3204d
path-list.h
#ifndef _PATH_LIST_H_
#define _PATH_LIST_H_

struct path_list_item {
	char *path;
	void *util;
};
struct path_list
{
	struct path_list_item *items;
	unsigned int nr, alloc;
	unsigned int strdup_paths:1;
};

void print_path_list(const char *text, const struct path_list *p);

int path_list_has_path(const struct path_list *list, const char *path);
void path_list_clear(struct path_list *list, int free_items);
struct path_list_item *path_list_insert(const char *path, struct path_list *list);
struct path_list_item *path_list_lookup(const char *path, struct path_list *list);

#endif /* _PATH_LIST_H_ */
back to top