Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
352c2941
Commit
352c2941
authored
10 years ago
by
Matt Bell
Committed by
Juan Batiz-Benet
10 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core/commands2: Made 'ls' output match old command
parent
68693783
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
core/commands2/ls.go
core/commands2/ls.go
+1
-2
No files found.
core/commands2/ls.go
View file @
352c2941
...
...
@@ -72,7 +72,6 @@ it contains, with the following format:
},
Marshallers
:
map
[
cmds
.
EncodingType
]
cmds
.
Marshaller
{
cmds
.
Text
:
func
(
res
cmds
.
Response
)
([]
byte
,
error
)
{
// TODO: revert format to match old command
s
:=
""
output
:=
res
.
Output
()
.
(
*
LsOutput
)
.
Objects
...
...
@@ -82,7 +81,7 @@ it contains, with the following format:
}
for
_
,
link
:=
range
object
.
Links
{
s
+=
fmt
.
Sprintf
(
"
->
%s %
s (%v bytes)
\n
"
,
link
.
Name
,
link
.
Hash
,
link
.
Siz
e
)
s
+=
fmt
.
Sprintf
(
"%s %
v %s
\n
"
,
link
.
Hash
,
link
.
Size
,
link
.
Nam
e
)
}
if
len
(
output
)
>
1
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment