Thread (119 messages) 119 messages, 15 authors, 2021-09-27

[PATCH v10 0/3] maintenance: add support for systemd timers on Linux

flat view
STALE1842d

From: Lénaïc Huard <hidden>
Date: 2021-09-04 20:56:07

Revision v10 of 5 in this series.

Revisions (5)
  1. v6 [diff vs current]
  2. v7 [diff vs current]
  3. v8 [diff vs current]
  4. v9 [diff vs current]
  5. v10 current
Hello,

Please find hereafter my updated patchset to add support for systemd
timers on Linux for the `git maintenance start` command.

The only changes compared to the previous version are fixes for the
two typos in a comment that Ramsay Jones pointed out [1]

[1] https://lore.kernel.org/git/51246c10-fe0b-b8e5-cdc3-54bdc6c8054e@ramsayjones.plus.com/ (local)


The patches are:

* cache.h: Introduce a generic "xdg_config_home_for(…)" function

  This patch introduces a function to compute configuration files
  paths inside $XDG_CONFIG_HOME.

* maintenance: `git maintenance run` learned `--scheduler=<scheduler>`

  This patch adds a new parameter to the `git maintenance run` to let
  the user choose a scheduler.

* maintenance: add support for systemd timers on Linux

  This patch implements the support of systemd timers on top of
  crontab scheduler on Linux systems.

Best wishes,
Lénaïc.

Lénaïc Huard (3):
  cache.h: Introduce a generic "xdg_config_home_for(…)" function
  maintenance: `git maintenance run` learned `--scheduler=<scheduler>`
  maintenance: add support for systemd timers on Linux

 Documentation/git-maintenance.txt |  57 +++
 builtin/gc.c                      | 581 ++++++++++++++++++++++++++----
 cache.h                           |   7 +
 path.c                            |  13 +-
 t/t7900-maintenance.sh            | 110 +++++-
 5 files changed, 690 insertions(+), 78 deletions(-)

Diff-intervalle contre v9 :
1:  1639bd151c = 1:  0c0362d4ec cache.h: Introduce a generic "xdg_config_home_for(…)" function
2:  ea5568269c ! 2:  5fb061ca9d maintenance: `git maintenance run` learned `--scheduler=<scheduler>`
    @@ builtin/gc.c: static const char *get_frequency(enum schedule_priority schedule)
     + * list of colon-separated key/value pairs where each pair contains a scheduler
     + * and its corresponding mock.
     + *
    -+ * * If $GET_TEST_MAINT_SCHEDULER is not set, return false and leave the
    ++ * * If $GIT_TEST_MAINT_SCHEDULER is not set, return false and leave the
     + *   arguments unmodified.
     + *
    -+ * * If $GET_TEST_MAINT_SCHEDULER is set, return true.
    ++ * * If $GIT_TEST_MAINT_SCHEDULER is set, return true.
     + *   In this case, the *cmd value is read as input.
     + *
     + *   * if the input value *cmd is the key of one of the comma-separated list
3:  8c25ebd3be = 3:  b0f2f6df0e maintenance: add support for systemd timers on Linux
-- 
2.33.0
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help