{"thread":{"id":"43601","subject":"Request: Adding -q/--quiet option to git-cat-file","startedAt":"2006-12-02T21:32:33Z","lastAt":"2006-12-02T21:32:33Z","messageCount":1,"participants":["Jakub Narebski"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"295805","messageId":"eksr9n$s2c$1@sea.gmane.org","threadId":"43601","inReplyTo":null,"subject":"Request: Adding -q/--quiet option to git-cat-file","fromName":"Jakub Narebski","fromEmail":"jnareb@gmail.com","sentAt":"2006-12-02T21:32:33Z","receivedAt":"2006-12-02T21:32:33Z","isPatch":false,"sender":{"key":"jnareb@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2706?v=4"},"body":"The only \"committag\" gitweb implements now is linking the full 40-char sha\nof a commit to a \"commit\" view. This requires checking the type of object\ngiven by sha1... but git-cat-file -t writes errors to stdout if the object\ndoes not exist. I'd rather not use additional call, using git-cat-file -e,\nor using 'string' version of magic \"-|\" open to redirect stdout to /dev/null\n(as it is additional fork anyway).\n\nWhat I need is an option -q/--quiet to git-cat-file to forbid printing error\nmessages to stderr... but it looks like it would be easier to add it\nuniversally for all commands, or add it to git wrapper.\n-- \nJakub Narebski\nWarsaw, Poland\nShadeHawk on #git\n\n"}]}