Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

Conversation

@JoshuaSjoding
Copy link
Contributor

This changeset adds support for the loose object file format used on disk when objects aren't packed. This is a necessary component for the implementation of #19.

This changeset also fixes an accidental shadowing of the bultin close function introduced in e2c9ad1.

@codecov-io
Copy link

Current coverage is 62.30%

Merging #37 into master will increase coverage by +1.99% as of cd639c5

@@            master    #37   diff @@
=====================================
  Files           28     31     +3
  Stmts         1590   1703   +113
  Branches       240    261    +21
  Methods          0      0       
=====================================
+ Hit            959   1061   +102
- Partial        129    133     +4
- Missed         502    509     +7

Review entire Coverage Diff as of cd639c5

Powered by Codecov. Updated on successful CI builds.

}

// Valid returns true if t is a valid ObjectType.
func (t ObjectType) Valid() bool {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why? This can happen?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I meant to use this to check the validity of the provided object type in objfile.NewWriter. I'll update the PR.

Object types default to 0, which is an invalid value, so I added this function for a consistent way to check that someone didn't forget to provide a valid value.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

objfile.NewWriter has been updated to use this function now.

@mcuadros
Copy link
Contributor

Awesome work. Looks greats.

mcuadros added a commit that referenced this pull request Feb 27, 2016
Added support for objfile format
@mcuadros mcuadros merged commit b8dd44e into src-d:master Feb 27, 2016
@JoshuaSjoding JoshuaSjoding deleted the objfile-format branch June 24, 2016 09:05
mcuadros added a commit that referenced this pull request Jan 31, 2017
Added support for objfile format
gsalingu-ovhus pushed a commit to gsalingu-ovhus/go-git that referenced this pull request Mar 28, 2019
Webapp coding style and comments
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants