]> git.ipfire.org Git - thirdparty/git.git/commit - Documentation/git-rev-parse.txt
rev-parse: rev-parse: add --is-shallow-repository
authorØystein Walle <oystwa@gmail.com>
Mon, 18 Sep 2017 17:04:29 +0000 (19:04 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 19 Sep 2017 03:16:28 +0000 (12:16 +0900)
commit417abfde3534ad51a1a47e00ed799e40e3f7b4ae
treeeb25ed542b7e66906863197924077c567f5aad2c
parent94c9fd268d4287f6fbfef84793288479905a7e48
rev-parse: rev-parse: add --is-shallow-repository

Running `git fetch --unshallow` on a repo that is not in fact shallow
produces a fatal error message. Add a helper to rev-parse that scripters
can use to determine whether a repo is shallow or not.

Signed-off-by: Øystein Walle <oystwa@gmail.com>
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-rev-parse.txt
builtin/rev-parse.c
t/t1500-rev-parse.sh