Merge branch 'maint'
* maint: Documentation: fix graph in git-rev-parse.txt show-branch --current: do not barf on detached HEAD
This commit is contained in:
		| @ -243,6 +243,7 @@ Here is an illustration, by Jon Loeliger.  Both commit nodes B | |||||||
| and C are parents of commit node A.  Parent commits are ordered | and C are parents of commit node A.  Parent commits are ordered | ||||||
| left-to-right. | left-to-right. | ||||||
|  |  | ||||||
|  | ........................................ | ||||||
| G   H   I   J | G   H   I   J | ||||||
|  \ /     \ / |  \ /     \ / | ||||||
|   D   E   F |   D   E   F | ||||||
| @ -253,6 +254,7 @@ left-to-right. | |||||||
|        \   / |        \   / | ||||||
|         \ / |         \ / | ||||||
|          A |          A | ||||||
|  | ........................................ | ||||||
|  |  | ||||||
|     A =      = A^0 |     A =      = A^0 | ||||||
|     B = A^   = A^1     = A~1 |     B = A^   = A^1     = A~1 | ||||||
|  | |||||||
| @ -782,8 +782,8 @@ int cmd_show_branch(int ac, const char **av, const char *prefix) | |||||||
| 				has_head++; | 				has_head++; | ||||||
| 		} | 		} | ||||||
| 		if (!has_head) { | 		if (!has_head) { | ||||||
| 			int pfxlen = strlen("refs/heads/"); | 			int offset = !prefixcmp(head, "refs/heads/") ? 11 : 0; | ||||||
| 			append_one_rev(head + pfxlen); | 			append_one_rev(head + offset); | ||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 Junio C Hamano
					Junio C Hamano