mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Database: ::dump indicates which data file is current
This commit is contained in:
parent
2d701b768b
commit
b1148a2b41
1 changed files with 3 additions and 1 deletions
|
@ -71,7 +71,9 @@ std::string Database::dump () const
|
|||
std::stringstream out;
|
||||
out << "Database\n";
|
||||
for (const auto& file : _files)
|
||||
out << " Datafile: " << file.name () << "\n";
|
||||
out << " Datafile: " << file.name ()
|
||||
<< (file.name () == _current ? " (current)" : "")
|
||||
<< "\n";
|
||||
|
||||
return out.str ();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue