mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-27 10:07:19 +02:00
Enhancment - undo
- Now presents a side-by-side table for comparison during undo.
This commit is contained in:
parent
5a1191300c
commit
65595220f2
4 changed files with 99 additions and 8 deletions
13
src/util.cpp
13
src/util.cpp
|
@ -529,3 +529,16 @@ std::string taskDifferences (const Task& before, const Task& after)
|
|||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
std::string renderAttribute (const std::string& name, const std::string& value)
|
||||
{
|
||||
Att a;
|
||||
if (a.type (name) == "date")
|
||||
{
|
||||
Date d ((time_t)::atoi (value.c_str ()));
|
||||
return d.toString (context.config.get ("dateformat", "m/d/Y"));
|
||||
}
|
||||
|
||||
return value;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue