Repository navigation
Add option to push object ID(s) directly. - #449
Conversation
There was a problem hiding this comment.
I think I'd rather have NewUploadable just respect a "" filename, instead of a new function.
There was a problem hiding this comment.
ok 29f6944
although I am not particular happy with the variable name pathForStats. Ideas appreciated 😄
There was a problem hiding this comment.
statsPath ?
On Mon, Jul 6, 2015 at 5:07 AM, Lars Schneider [email protected]
wrote:
In lfs/upload_queue.go
#449 (comment):@@ -34,6 +34,20 @@ func NewUploadable(oid, filename string, index, totalFiles int) (*Uploadable, *W
return &Uploadable{oid: oid, OidPath: path, Filename: filename, size: fi.Size()}, nil
}+func NewUploadableWithoutFilename(oid string) (*Uploadable, *WrappedError) {
ok ce20dd4
ce20dd4
although I am not particular happy with the variable name pathForStats.
Ideas appreciated [image: 😄]—
Reply to this email directly or view it on GitHub
https://github.com/github/git-lfs/pull/449/files#r33924229.
Rick Olson
|
Other than my comments above, I'm 👍 on this. Curious what others think though. |
There was a problem hiding this comment.
You could replace this with:
pathForStats := localMediaPathb7d31bd to
c84c7d0
Compare
There was a problem hiding this comment.
This helper isn't saving any lines of code, and only obscures the simple unix command. I'd rather keep the tests straight forward as much as possible.
There was a problem hiding this comment.
It doesn't save any lines, but I think it makes this assert easier to read and use. Anyways, I want this PR merged therefore I will revert this change 😩
There was a problem hiding this comment.
"easier to read and use" really depends on the context. In this case I'm preferring short shell commands to extra overhead from helpers. Thanks for reverting.
There was a problem hiding this comment.
Could we toss a tracerx line in here similar to the above function?
There was a problem hiding this comment.
Agreed. However checking_asset doesn't seem right to me. Is is ok if I rename it to prepare upload ?
|
👍 from me, seems like it'll be some useful tooling |
|
Thanks for hanging in there, @larsxschneider :) |
Add option to push object ID(s) directly.
|
@larsxschneider Can you update docs/man/git-lfs-push.1.ronn accordingly? |
|
@michael-k Thanks for the hint. I will fix it ASAP. |
Backport #449 for v0.5.x: Add option to push object ID(s) directly.
|
Since I'm prepping a new release, I went ahead and did it: #509 Though this makes me consider making it a boolean flag in v0.6.x: |
Adds a new option "--objectid" to the push command to upload objects generated by BFG. Click here for an example how to use it with BFG.
Note:
I am learning golang. Please point out to me anything that could be improved. Even if pedantic 😄