Skip to content

Commit a9f9ae6

Browse files
samoconnortkelman
authored andcommitted
Consistency of read() and write() functions. #14608
replace readall() with readstring() replace readbytes() with read() readbytes! returns nb whereas read! returns array, so they can't trivially be merged. Fix test/replutil.jl test that matches output of method error message that has changed due to introduction of readbytes(::AbstractString). add: +eachline(filename::AbstractString) = EachLine(open(stream), close) revert mistaken docstring change -- read! vs readbytes! update base/docs/helpdb/Base.jl update rst docs, BBEditTextWrangler-julia.plist replace missing chomp() in getmetabranch() doc tweaks make && make julia-genstdlib more doc tweaks whitespace tweak doc: read!(stream or filename, ...)
1 parent 35d5165 commit a9f9ae6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/pkg/git.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ end
2222

2323
cmd(args::Cmd; dir="") = `$(git(dir)) $args`
2424
run(args::Cmd; dir="", out=STDOUT) = Base.run(pipeline(cmd(args,dir=dir), out))
25-
readall(args::Cmd; dir="") = Base.readall(cmd(args,dir=dir))
25+
readstring(args::Cmd; dir="") = Base.readstring(cmd(args,dir=dir))
2626
readchomp(args::Cmd; dir="") = Base.readchomp(cmd(args,dir=dir))
2727

2828
function success(args::Cmd; dir="")

0 commit comments

Comments
 (0)