Code

git-cat-file: Small refactor of cmd_cat_file
authorAdam Roben <aroben@apple.com>
Wed, 23 Apr 2008 19:17:44 +0000 (15:17 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 6 May 2008 03:57:55 +0000 (20:57 -0700)
commit9cf71b176cb175589c3ea828f7364893cc45b82f
treebbbaf38fc52b7737238b3af4daa418060bf36661
parentb335d3f121536733fff3b71d4270c74a9d6e9e91
git-cat-file: Small refactor of cmd_cat_file

I separated the logic of parsing the arguments from the logic of fetching and
outputting the data. cat_one_file now does the latter.

Signed-off-by: Adam Roben <aroben@apple.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-cat-file.c