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