xaizek / dit (License: GPLv3) (since 2018-12-07)
Command-line task keeper that remembers all old values and is meant to combine several orthogonal features to be rather flexible in managing items.
Commit 46f71de3879ad204d7dfb850e02360060fc65030

Use namespace alias `pt` in Config.cpp
Wasn't used in two places.
Author: xaizek
Author date (UTC): 2020-03-22 23:04
Committer name: xaizek
Committer date (UTC): 2020-03-22 23:04
Parent(s): 7cc415dfbf4b7264c73aa2588397d9e941f6d452
Signing key: 99DC5E4DB05F6BE2
Tree: 4e823bcb1557329e8a442c101b7fed082d8028d6
File Lines added Lines deleted
src/Config.cpp 2 3
File src/Config.cpp changed (mode: 100644) (index 08265cc..9079d42)
... ... Config::get(const std::string &key)
43 43 std::string val; std::string val;
44 44 try { try {
45 45 val = props.get<std::string>(key); val = props.get<std::string>(key);
46 } catch (boost::property_tree::ptree_bad_path &) {
46 } catch (pt::ptree_bad_path &) {
47 47 if (parent == nullptr) { if (parent == nullptr) {
48 48 throw; throw;
49 49 } }
 
... ... Config::list(const std::string &path)
71 71 { {
72 72 ensureLoaded(); ensureLoaded();
73 73
74 boost::optional<boost::property_tree::ptree &> subtree =
75 props.get_child_optional(path);
74 boost::optional<pt::ptree &> subtree = props.get_child_optional(path);
76 75 if (!subtree) { if (!subtree) {
77 76 return (parent == nullptr) return (parent == nullptr)
78 77 ? std::vector<std::string>() ? std::vector<std::string>()
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/dit

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/dit

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master