diff options
author | thegeorg <thegeorg@yandex-team.ru> | 2022-05-12 14:49:52 +0300 |
---|---|---|
committer | thegeorg <thegeorg@yandex-team.ru> | 2022-05-12 14:49:52 +0300 |
commit | 3aed08a18fa249b07acb03736b760f277cd1cf3c (patch) | |
tree | 29f0de0f4318bc4453dde6c27ae8f50a5cfea163 /util | |
parent | dd0c829bb9ff87019aba4525016f53b06266f877 (diff) | |
download | ydb-3aed08a18fa249b07acb03736b760f277cd1cf3c.tar.gz |
piglet: Extract metadata from commit message
* Introduce `CommitMetadata` struct with structured metadata (all the fields are optional)
* Drop `class Author` and use `NLibgit2::TSignature` directly instead
ref:3aae28cb614b3c611f8abb2b1c12ff114aaed46f
Diffstat (limited to 'util')
-rw-r--r-- | util/string/strip.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/util/string/strip.h b/util/string/strip.h index a65d3fe069..c2ea61adce 100644 --- a/util/string/strip.h +++ b/util/string/strip.h @@ -188,6 +188,11 @@ inline TString& StripInPlace(TString& s) { return s; } +template <typename T> +inline void StripInPlace(T& s) { + StripString(s, s); +} + /// Returns a copy of the given string with removed leading and trailing spaces. inline TString Strip(const TString& s) Y_WARN_UNUSED_RESULT; inline TString Strip(const TString& s) { |