[GUILT PATCH 2/5] guilt-guard: Assign guards to patches in series
commit6e521ce27e6a54c036a928c4a427c66d4b80decc
authorEric Lesh <eclesh@ucla.edu>
Sun, 14 Sep 2008 23:03:27 +0000 (14 19:03 -0400)
committerJosef 'Jeff' Sipek <jeffpc@josefsipek.net>
Tue, 30 Sep 2008 15:51:40 +0000 (30 11:51 -0400)
treef761ee5172d413cc0aab74e11d68f92ca619379c
parent3d842d2720cfea8c462b71bb990440a83780eadc
[GUILT PATCH 2/5] guilt-guard: Assign guards to patches in series

guilt-guard will assign guards to a patch.  They work so that:

    * Patches with no guards are always pushed.

    * Patches with positive guards (i.e. +foo) are pushed *only if* the
      guard is selected.

    * Patches with negative guards (i.e. -foo) are pushed *unless* the
      guard is selected.

This also introduces a number of guard-related utility functions into
guilt.  get_guarded_series is used to get the list of patches that are
applicable given the current guard status.  It replaces get_series in
a later patch.

[jeffpc: small cleanups & bugfixes]
Signed-off-by: Eric Lesh <eclesh@ucla.edu>
Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
Documentation/guilt-guard.txt [new file with mode: 0644]
guilt
guilt-guard [new file with mode: 0755]