@@ -65,17 +65,8 @@ if(arguments[["tabulate"]] & arguments[["help"]]){
65
65
perceval_path <- path.expand(tool [[" perceval" ]])
66
66
git_repo_path <- path.expand(conf [[" version_control" ]][[" log" ]])
67
67
68
- file_extensions <- conf [[" filter" ]][[" keep_filepaths_ending_with" ]]
69
- substring_filepath <- conf [[" filter" ]][[" remove_filepaths_containing" ]]
70
- filter_commit_size <- conf [[" filter" ]][[" remove_filepaths_on_commit_size_greather_than" ]]
71
-
72
68
project_git <- parse_gitlog(perceval_path ,git_repo_path )
73
69
74
- # Filter files
75
- if (length(file_extensions ) > 0 ) project_git <- project_git %> % filter_by_file_extension(file_extensions ," file_pathname" )
76
- if (length(substring_filepath ) > 0 ) project_git <- project_git %> % filter_by_filepath_substring(substring_filepath ," file_pathname" )
77
- if (length(filter_commit_size ) > 0 ) project_git <- project_git %> % filter_by_commit_size(commit_size = filter_commit_size )
78
-
79
70
# Identity match
80
71
if (id_match ){
81
72
project_log <- list (project_git = project_git )
@@ -109,6 +100,7 @@ if(arguments[["tabulate"]] & arguments[["help"]]){
109
100
conf <- yaml :: read_yaml(conf_path )
110
101
cli <- yaml :: read_yaml(cli_path )
111
102
103
+ time <- cli [[" git" ]][[" time" ]]
112
104
id_match <- cli [[" git" ]][[" identity" ]][[" match" ]]
113
105
id_names_only <- cli [[" git" ]][[" identity" ]][[" names_only" ]]
114
106
@@ -144,8 +136,8 @@ if(arguments[["tabulate"]] & arguments[["help"]]){
144
136
format = " %a %b %d %H:%M:%S %Y %z" , tz = " UTC" )
145
137
146
138
# The start and end dates correspond to the date of the earliest and latest commit, respectively.
147
- start_date <- min(project_git $ author_datetimetz ,na.rm = TRUE )
148
- end_date <- max(project_git $ author_datetimetz ,na.rm = TRUE )
139
+ start_date <- min(project_git [[ time ]] ,na.rm = TRUE )
140
+ end_date <- max(project_git [[ time ]] ,na.rm = TRUE )
149
141
150
142
# Create time windows
151
143
if (length(ranges ) > 0 ) {
@@ -204,8 +196,8 @@ if(arguments[["tabulate"]] & arguments[["help"]]){
204
196
entity_save_path = file.path(entity_save_dir , save_file_name )
205
197
206
198
# Obtain all commits from the gitlog which are within a particular window_size
207
- project_git_slice <- project_git [(project_git $ author_datetimetz > = start_day ) &
208
- (project_git $ author_datetimetz < = end_day ), ]
199
+ project_git_slice <- project_git [(project_git [[ time ]] > = start_day ) &
200
+ (project_git [[ time ]] < = end_day ), ]
209
201
210
202
# Perform entity analysis
211
203
changed_entities <- setNames(data.table(matrix (nrow = 0 , ncol = 7 )),
0 commit comments