forked from lix-project/lix
Move getLastModified(), remove setPathDisplay()
This commit is contained in:
parent
df10dc630f
commit
bacceaea91
|
@ -16,6 +16,15 @@ class Store;
|
||||||
|
|
||||||
struct InputAccessor : SourceAccessor, std::enable_shared_from_this<InputAccessor>
|
struct InputAccessor : SourceAccessor, std::enable_shared_from_this<InputAccessor>
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* Return the maximum last-modified time of the files in this
|
||||||
|
* tree, if available.
|
||||||
|
*/
|
||||||
|
virtual std::optional<time_t> getLastModified()
|
||||||
|
{
|
||||||
|
return std::nullopt;
|
||||||
|
}
|
||||||
|
|
||||||
StorePath fetchToStore(
|
StorePath fetchToStore(
|
||||||
ref<Store> store,
|
ref<Store> store,
|
||||||
const CanonPath & path,
|
const CanonPath & path,
|
||||||
|
|
|
@ -83,16 +83,7 @@ struct SourceAccessor
|
||||||
return number < x.number;
|
return number < x.number;
|
||||||
}
|
}
|
||||||
|
|
||||||
void setPathDisplay(std::string displayPrefix, std::string displaySuffix = "");
|
|
||||||
|
|
||||||
virtual std::string showPath(const CanonPath & path);
|
virtual std::string showPath(const CanonPath & path);
|
||||||
|
|
||||||
/* Return the maximum last-modified time of the files in this
|
|
||||||
tree, if available. */
|
|
||||||
virtual std::optional<time_t> getLastModified()
|
|
||||||
{
|
|
||||||
return std::nullopt;
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue