summaryrefslogtreecommitdiff
path: root/src/pkg/archive
AgeCommit message (Collapse)AuthorFilesLines
2015-01-15Imported Upstream version 1.4upstream/1.4Tianon Gravi45-5488/+0
2014-06-19Imported Upstream version 1.3upstream/1.3Michael Stapelberg17-42/+968
2013-12-03Imported Upstream version 1.2upstream/1.2Michael Stapelberg13-116/+603
2013-05-14Imported Upstream version 1.1upstream/1.1Michael Stapelberg5-3/+36
2013-03-04Imported Upstream version 1.1~hg20130304upstream/1.1_hg20130304Michael Stapelberg18-122/+1589
2012-04-06Imported Upstream version 1upstream/1Ondřej Surý22-475/+1082
2011-09-13Imported Upstream version 60upstream/60Ondřej Surý26-0/+1968
2011-09-13Imported Upstream version 60Ondřej Surý23-1516/+0
2011-08-03Imported Upstream version 59upstream/59Ondřej Surý1-1/+1
2011-04-28Imported Upstream version 2011.04.27upstream/2011.04.27Ondřej Surý3-9/+4
2011-04-26Imported Upstream version 2011.04.13upstream/2011.04.13Ondřej Surý5-31/+57
2011-02-18Imported Upstream version 2011.02.15upstream/2011.02.15Ondřej Surý4-14/+57
2011-01-17Imported Upstream version 2011.01.12upstream/2011.01.12Ondřej Surý13-6/+507
2010-04-22FileInfo: regularize the types of some fields.Rob Pike3-6/+6
Uid, Gid become int. File size info becomes int64. Times become int64. R=rsc, cw CC=golang-dev http://codereview.appspot.com/968042
2010-04-11archive/tar: update documentation to match current coding styleChristopher Wedgwood2-8/+8
R=rsc, r CC=golang-dev http://codereview.appspot.com/903044 Committer: Rob Pike <r@golang.org>
2010-03-02gofmt: experiment: align values in map composites where possibleRobert Griesemer2-72/+72
- gofmt -w src misc - looking for feedback R=rsc, r CC=golang-dev http://codereview.appspot.com/223076
2010-02-25strings: delete Runes, BytesRuss Cox2-21/+19
gofmt -w -r 'strings.Bytes(a) -> []byte(a)' src/cmd src/pkg test/bench gofmt -w -r 'strings.Runes(a) -> []int(a)' src/cmd src/pkg test/bench delete unused imports R=r CC=golang-dev http://codereview.appspot.com/224062
2009-12-15 1) Change default gofmt default settings forRobert Griesemer5-258/+258
parsing and printing to new syntax. Use -oldparser to parse the old syntax, use -oldprinter to print the old syntax. 2) Change default gofmt formatting settings to use tabs for indentation only and to use spaces for alignment. This will make the code alignment insensitive to an editor's tabwidth. Use -spaces=false to use tabs for alignment. 3) Manually changed src/exp/parser/parser_test.go so that it doesn't try to parse the parser's source files using the old syntax (they have new syntax now). 4) gofmt -w src misc test/bench 1st set of files. R=rsc CC=agl, golang-dev, iant, ken2, r http://codereview.appspot.com/180047
2009-12-14archive/tar: bug fixes.Christopher Wedgwood3-37/+167
1. If all data is exhausted using Read then a following Next will fail as if it saw EOF. (Test case added.) 2. Seeking isn't always possible (i.e. sockets and pipes). Fallback to read. (Test case added.) 3. Fix to readHeader (cleaner fix pointed out by rsc). (TestReader modified.) 4. When Read has consumed all the data, don't try to read 0 bytes from reader. In cases where tr.nb is zero we attempt to read zero bytes and thus never see an EOF (this is most easily seen when the 'tar source' is something like bytes.Buffer{} as opposed to os.File). 5. If write is used to the point of ErrWriteTooLong, allow additional file entries. 6. Make close work as expected. That is any further Write or WriteHeader attempts will result in ErrWriteAfterClose. Fixes issue 419. R=rsc, dsymonds1 http://codereview.appspot.com/162062 Committer: Russ Cox <rsc@golang.org>
2009-12-02move ReadFile, WriteFile, and ReadDir into a separate io/ioutil package.Rob Pike1-1/+2
this breaks the dependency of package io on package bytes. R=rsc CC=golang-dev http://codereview.appspot.com/163085
2009-11-23go: makes it build for the case $GOROOT has whitespacesSergio Luis O. B. Correia1-2/+2
the bash scripts and makefiles for building go didn't take into account the fact $GOROOT / $GOBIN could both be directories containing whitespaces, and was not possible to build it in such a situation. this commit adjusts the various makefiles/scripts to make it aware of that possibility, and now it builds successfully when using a path with whitespaces as well. Fixes issue 115. R=rsc, dsymonds1 http://codereview.appspot.com/157067 Committer: Russ Cox <rsc@golang.org>
2009-11-20gofmt -r 'α[β:len(α)] -> α[β:]' -w src/cmd src/pkgRuss Cox3-4/+4
R=r, gri CC=golang-dev http://codereview.appspot.com/156115
2009-11-19archive/tar: Make Reader and Writer more closely follow io.Reader and ↵Evan Shaw2-2/+2
io.Writer interfaces There's no functional change here. io gives the Read and Write methods byte slice arguments, but tar called them uint8. It's the same thing, but I think this is clearer and it matches what other packages do. R=rsc CC=golang-dev http://codereview.appspot.com/157099 Committer: Russ Cox <rsc@golang.org>
2009-11-18remove bytes.CopyRob Pike1-17/+16
replace all calls with calls to copy use copy in regexp and bytes.Buffer R=rsc CC=golang-dev http://codereview.appspot.com/157073
2009-11-09- replaced gofmt expression formatting algorithm withRobert Griesemer4-9/+9
rsc's algorithm - applied gofmt -w misc src - partial CL (remaining files in other CLs) R=rsc, r http://go/go-review/1024040
2009-11-09remove semis after statements in one-statement statement listsRobert Griesemer4-46/+46
R=rsc, r http://go/go-review/1025029
2009-11-06- fine-tuning of one-line func heuristic (nodes.go)Robert Griesemer2-6/+2
- enabled for function declarations (not just function literals) - applied gofmt -w $GOROOT/src (look for instance at src/pkg/debug/elf/elf.go) R=r, rsc CC=go-dev http://go/go-review/1026006
2009-11-04gofmt-ify src/pkg/archiveRobert Griesemer1-15/+15
R=rsc http://go/go-review/1018046
2009-11-01reverse the arguments to io.Copy so the destination is on theRob Pike2-3/+3
left, like an assignment, like strcpy, etc. R=rsc CC=go-dev http://go/go-review/1016011
2009-10-08more lgtm files from gofmtRuss Cox2-4/+4
R=gri OCL=35485 CL=35488
2009-10-06another round of gofmt applicationsRuss Cox4-42/+44
R=gri DELTA=900 (106 added, 31 deleted, 763 changed) OCL=35384 CL=35396
2009-10-06apply gofmt to the LGTM-marked files from 34501Russ Cox2-59/+59
that have not changed since I applied gofmt. R=gri DELTA=456 (77 added, 3 deleted, 376 changed) OCL=35378 CL=35383
2009-10-05Add write support for the GNU tar binary numeric field extension.David Symonds3-13/+61
R=rsc APPROVED=rsc DELTA=102 (89 added, 1 deleted, 12 changed) OCL=35321 CL=35327
2009-09-17unused importsRuss Cox2-4/+0
R=r OCL=34731 CL=34731
2009-09-16rename bytes.Buffer.Data() to bytes.Buffer.Bytes()Rob Pike1-1/+1
R=rsc DELTA=152 (6 added, 0 deleted, 146 changed) OCL=34695 CL=34701
2009-09-15more "declared and not used".Russ Cox2-4/+4
the last round omitted := range and only checked 1 out of N vars in a multi-var := R=r OCL=34624 CL=34638
2009-09-14fix "declared and not used" errors in non-test code.Russ Cox2-11/+7
R=r DELTA=112 (6 added, 57 deleted, 49 changed) OCL=34610 CL=34610
2009-08-18Add a standard Seeker interface.Austin Clements1-5/+1
R=rsc APPROVED=rsc DELTA=35 (30 added, 4 deleted, 1 changed) OCL=33491 CL=33498
2009-08-12convert non-low-level non-google pkg codeRuss Cox5-74/+10
to whole-package compilation. R=r OCL=33070 CL=33101
2009-08-09Regenerate v7.tar with a real V7 tar.David Symonds3-5/+10
Fix octal parsing that it unearthed. R=rsc APPROVED=rsc DELTA=11 (5 added, 0 deleted, 6 changed) OCL=32924 CL=32945
2009-07-08archive/tar cleanups:David Symonds5-38/+46
- rename untar{,_test}.go to reader{,_test}.go. - fix up some comments. - improve test output if it fails. R=rsc APPROVED=rsc DELTA=821 (400 added, 392 deleted, 29 changed) OCL=31376 CL=31378
2009-07-08Basic POSIX-compatible tar writer.David Symonds7-74/+395
R=rsc APPROVED=rsc DELTA=456 (382 added, 66 deleted, 8 changed) OCL=31246 CL=31372
2009-07-06Add support for v7 tar.David Symonds3-6/+27
R=rsc APPROVED=rsc DELTA=32 (26 added, 4 deleted, 2 changed) OCL=31172 CL=31242
2009-06-29io.StringBytes -> strings.BytesRuss Cox1-2/+3
io.ByteBuffer -> bytes.Buffer left io.ByteBuffer stub around for now, for protocol compiler. R=r OCL=30861 CL=30872
2009-06-22changes required if we disallow the implicit *Russ Cox1-2/+3
in cap, len, [], and range on maps, strings, and slices. R=r DELTA=57 (2 added, 12 deleted, 43 changed) OCL=30549 CL=30590
2009-06-22introduce os.EOF and io.ErrUnexpectedEOF.Russ Cox2-4/+4
remove io.ErrEOF. rename io.FullRead to io.ReadFull, to match ReadAtLeast and ReadAll. remove io.FullReader, because it is now unused. R=r DELTA=295 (88 added, 105 deleted, 102 changed) OCL=30544 CL=30588
2009-06-10Add support for the basic extension done by Schilling's star.David Symonds4-40/+163
Compute checksums in both ways (unsigned and signed). R=rsc APPROVED=rsc DELTA=188 (145 added, 21 deleted, 22 changed) OCL=30126 CL=30179
2009-06-09mv src/lib to src/pkgRob Pike6-0/+373
tests: all.bash passes, gobuild still works, godoc still works. R=rsc OCL=30096 CL=30102