Skip to content

Commit

Permalink
adding constant value for libdar users libdar::archive_option_create:…
Browse files Browse the repository at this point in the history
…:default_excluding_ea
  • Loading branch information
Edrusb committed Sep 28, 2024
1 parent 34f14d8 commit cbda2d4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/libdar/archive_options.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,8 @@ namespace libdar
class archive_options_create
{
public:
static constexpr const char* default_excluding_ea = "user.libdar_no_backup";

// default constructors and destructor.

archive_options_create();
Expand Down Expand Up @@ -456,7 +458,7 @@ namespace libdar
/// defines whether to ignore files having a given EA
/// \note if ea_name is set to "" the default ea_name "user.libdar_no_backup" is used.
void set_exclude_by_ea(const std::string & ea_name)
{ exclude_by_ea = (ea_name == "" ? "user.libdar_no_backup" : ea_name); };
{ exclude_by_ea = (ea_name == "" ? default_excluding_ea : ea_name); };

/// set the fields to consider when comparing inodes with reference archive (see comparison_fields enumeration in catalogue.hpp)
void set_what_to_check(comparison_fields what_to_check) { x_what_to_check = what_to_check; };
Expand Down

0 comments on commit cbda2d4

Please sign in to comment.