Skip to content

Commit

Permalink
feat(git): Display file contents as a string for git show FILE_OID
Browse files Browse the repository at this point in the history
  • Loading branch information
AtkinsSJ authored and KernelDeimos committed Jun 28, 2024
1 parent b6906bb commit a680371
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/git/src/subcommands/show.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export default {
const format_object = async (parsed_object) => {
switch (parsed_object.type) {
case 'blob':
return parsed_object.object;
return new TextDecoder().decode(parsed_object.object);
case 'commit': {
let s = format_commit(parsed_object.object, parsed_object.oid, options);
if (diff_options.display_diff()) {
Expand Down

0 comments on commit a680371

Please sign in to comment.