mirror of
https://github.com/HeyPuter/puter.git
synced 2025-02-02 23:28:39 +08:00
feat(git): Display file contents as a string for git show FILE_OID
This commit is contained in:
parent
b6906bbcaa
commit
a68037111a
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user