| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
Closes: #1861
Approved by: cgwalters
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
SPDX License List is a list of (common) open source
licenses that can be referred to by a “short identifier”.
It has several advantages compared to the common "license header texts"
usually found in source files.
Some of the advantages:
* It is precise; there is no ambiguity due to variations in license header
text
* It is language neutral
* It is easy to machine process
* It is concise
* It is simple and can be used without much cost in interpreted
environments like java Script, etc.
* An SPDX license identifier is immutable.
* It provides simple guidance for developers who want to make sure the
license for their code is respected
See http://spdx.org for further reading.
Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
Closes: #1439
Approved by: cgwalters
|
|
|
|
|
|
|
| |
This fixes the build with https://bugzilla.gnome.org/show_bug.cgi?id=790697
Closes: #1363
Approved by: jlebon
|
|
|
|
|
|
|
|
|
| |
We added a `.dir-locals.el` in commit: 9a77017d87b74c5e2895cdd64ad098018929403f
There's no need to have it per-file, with that people might think
to add other editors, which is the wrong direction.
Closes: #1206
Approved by: jlebon
|
|
|
|
|
|
|
|
| |
This avoids `ostree cat /path/to/symlink` crashing, a longstanding embarassing
issue.
Closes: #915
Approved by: jlebon
|
|
|
|
|
|
|
| |
Prep for a bugfix.
Closes: #915
Approved by: jlebon
|
|
|
|
|
| |
Closes: #359
Approved by: cgwalters
|
|
|
|
|
|
|
|
|
| |
- Revert 'cannot' --> 'can not' (it's the exception!)
- Remove duplicate function
- Squelch compiler warnings
Closes: #248
Approved by: cgwalters
|
|
|
|
|
|
|
|
|
| |
ostree_checksum_bytes_peek() can return NULL if the checksum has an
incorrect length (most likely from disk corruption) but most callers
are not prepared to handle this and would likely crash.
Use ostree_checksum_bytes_peek_validate() instead, which sets a
GError on an invalid checksum.
|
| |
|
|
|
|
|
| |
GLib 2.44 supplies all the necessary autocleanup macros for GIO types,
and libglnx backports the relevant macros for ostree.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
The user might "ostree ls /usr/bin/bash/blah", which previously would
segfault.
A somewhat related future enhancement here would be for "ostree ls" to
follow symbolic links.
Reported-by: Dusty Mabe <dustymabe@gmail.com>
https://bugzilla.gnome.org/show_bug.cgi?id=733476
|
| |
|
|
|
|
|
|
|
| |
This makes the obvious code to recursively enumerate directories
operate more sanely.
Noticed this while trying to write corrupt-repo-ref.js.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
We want an OstreeRepoFile to be the way to reference a "filesystem
tree" that's stored in the repo, which is a combination of a DIR_TREE
and a DIR_META. The idea is that once you write an mtree to the repo
using ostree_repo_write_mtree, it becomes serialized and you get an
OstreeRepoFile in return.
Change any APIs that care about DIR_TREE / DIR_META checksums to care
about OstreeRepoFiles instead, which right now is mostly is
ostree_repo_write_commit.
https://bugzilla.gnome.org/show_bug.cgi?id=707727
|
|
|
|
|
|
|
|
|
|
|
| |
We want an OstreeRepoFile to be the way to represent a filesystem tree
inside an ostree repository. In order to do this, we need to drop the
commit from an OstreeRepoFile, and make that go to callers.
Switch all current users of ostree_repo_file_new_root to
ostree_repo_read_commit, and make the actual constructor private.
https://bugzilla.gnome.org/show_bug.cgi?id=707727
|
|
|
|
| |
Was just unused, and it was using further API i want to remove.
|
|
|
|
|
|
|
|
| |
Instead, use OstreeRepoFile as a handle for the parent commit.
We need to add an accessor for the metadata checksum, as that
hasn't been exposed before.
https://bugzilla.gnome.org/show_bug.cgi?id=707727
|
|
|
|
|
|
|
| |
This is what we call it everywhere else, so just be consistent.
It also lines up with metadata_checksum better.
https://bugzilla.gnome.org/show_bug.cgi?id=707727
|
|
|
|
|
|
| |
Originally we had this to avoid forcing callers to malloc() if they
had a csum, but nowadays we have in-place conversion APIs that are
fast enough.
|
| |
|
|
|
|
| |
This function was only used by internals, make it private.
|
|
|
|
| |
Still lots more docs to write and API to cleanup, but this is better.
|
|
|
|
|
| |
This required a fair bit of surgery because previously ostree.h
included otutil.h, but that's supposed to be a private library.
|
|
|
|
| |
And drop our compatibility wrapper.
|
|
|
|
| |
Just doing some profiling, this was in the top malloc() callers.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Having the archived vs not distinction in the object system wasn't
useful in light of pack files. In fact, we should probably move
towards generating a pack file per commit by default.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
This concept is also directly inspired by git. At present, our
implementation is quite similar, except we don't have delta
compression.
|
| |
|
|
|
|
| |
This allows us to have circular references between the headers.
|
| |
|
|
|
|
| |
This makes "ostree ls" show the file size.
|
|
|
|
|
| |
This is *significantly* faster than checking out each branch into the
real filesystem, then importing it again.
|
|
|
|
|
|
| |
* "ls" used it
* It's not like our internal API is 100% stable anyways
* The _ is ugly
|
|
|
|
|
| |
Originally I thought it would make sense for OstreeRepoFile to be
mutable, and it probably does, but we should do it in a different way.
|
|
|
|
|
|
|
|
|
|
| |
This will allow us to have hardlink checkouts of archives. A key use
case here is an archive repo of an OS (with root-owned files etc.)
where we want to do builds in a user tree.
A positive side effect of doing things this way is that now the SHA256
checksums for a given file should be identical regardless of whether
it's stored in an archive or bare repository.
|
|
|
|
|
| |
This makes inspection easier. Internally the code gets simpler because
metadata and files are more unified; there is just one object type.
|
|
|
|
| |
This completes the rename from the previous commit.
|
|
|
|
|
| |
As Ray Strode argued, it's confusing to have something that looks like
a function be magical. And OT_TRANSFER_OUT_VALUE is uglier.
|
|
|
|
| |
This is in preparation for adding a third mode.
|
|
|
|
|
| |
Remove more unused functions, and change pathname splitting to handle
more cases like duplicate //, and to throw an error on .. as a filename.
|