aboutsummaryrefslogtreecommitdiff
path: root/src/tracking
diff options
context:
space:
mode:
authorAdrian Kummerlaender2016-02-19 19:11:33 +0100
committerAdrian Kummerlaender2016-02-19 19:11:33 +0100
commit5021c97e31ef8bb7cf40471e3fa98b451097451b (patch)
treec4d7bec0b183ceb6fabc3dd70bbe1d7953eb5d60 /src/tracking
parent50f2ef4ba33b540fa5a8e324996fa639500765f4 (diff)
downloadchange-5021c97e31ef8bb7cf40471e3fa98b451097451b.tar
change-5021c97e31ef8bb7cf40471e3fa98b451097451b.tar.gz
change-5021c97e31ef8bb7cf40471e3fa98b451097451b.tar.bz2
change-5021c97e31ef8bb7cf40471e3fa98b451097451b.tar.lz
change-5021c97e31ef8bb7cf40471e3fa98b451097451b.tar.xz
change-5021c97e31ef8bb7cf40471e3fa98b451097451b.tar.zst
change-5021c97e31ef8bb7cf40471e3fa98b451097451b.zip
Rename some functions to match overall naming scheme
Diffstat (limited to 'src/tracking')
-rw-r--r--src/tracking/change_tracker.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tracking/change_tracker.cc b/src/tracking/change_tracker.cc
index 9eab5a2..bc8465e 100644
--- a/src/tracking/change_tracker.cc
+++ b/src/tracking/change_tracker.cc
@@ -10,7 +10,7 @@ constexpr unsigned int EMPLACE_SUCCESS = 1;
constexpr unsigned int FILE_PATH = 0;
constexpr unsigned int FILE_CONTENT = 1;
-boost::process::context getDefaultContext() {
+boost::process::context get_default_context() {
boost::process::context context;
context.environment = boost::process::self::get_environment();
@@ -29,7 +29,7 @@ boost::process::context getDefaultContext() {
//
// diff -u --label $file_path - $file_path
//
-std::string getDiffCommand(
+std::string get_diff_command(
const std::string& diff_cmd, const std::string& file_path) {
return diff_cmd + " --label " + file_path + " - " + file_path;
}
@@ -72,8 +72,8 @@ ChangeTracker::~ChangeTracker() {
if ( boost::filesystem::exists(tracked_path) ) {
boost::process::child diffProcess{
boost::process::launch_shell(
- getDiffCommand(this->diff_cmd_, tracked_path),
- getDefaultContext()
+ get_diff_command(this->diff_cmd_, tracked_path),
+ get_default_context()
)
};