rekey: New plumbing level command, can be used to change the keys used for files en masse.
This commit is contained in:
parent
aeaaa0ff87
commit
db6b4cdfcf
6 changed files with 87 additions and 17 deletions
7
Seek.hs
7
Seek.hs
|
@ -45,6 +45,13 @@ withWords a params = return [a params]
|
|||
withStrings :: (String -> CommandStart) -> CommandSeek
|
||||
withStrings a params = return $ map a params
|
||||
|
||||
withPairs :: ((String, String) -> CommandStart) -> CommandSeek
|
||||
withPairs a params = return $ map a $ pairs [] params
|
||||
where
|
||||
pairs c [] = reverse c
|
||||
pairs c (x:y:xs) = pairs ((x,y):c) xs
|
||||
pairs _ _ = error "expected pairs"
|
||||
|
||||
withFilesToBeCommitted :: (String -> CommandStart) -> CommandSeek
|
||||
withFilesToBeCommitted a params = prepFiltered a $
|
||||
seekHelper LsFiles.stagedNotDeleted params
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue