[darcs-devel] [patch1772] remove currentDirectory from TreeMonad

Ben Franksen bugs at darcs.net
Tue Feb 26 07:47:55 UTC 2019


Ben Franksen <ben.franksen at online.de> added the comment:

Amended to resolve a conflict with screened. Also add a second related
patch.

2 patches for repository http://darcs.net/screened:

patch 8634f8ef8d8db0a3a394d435fdf0f4cfc9da864a
Author: Ben Franksen <ben.franksen at online.de>
Date:   Mon Dec  3 14:37:26 CET 2018
  * remove currentDirectory from TreeMonad
  
  Adding a notion of "current directory" to the TreeMonad is an unnecessary
  complication at best. It is clearer to explicitly pass the current directory
  when using the TreeMonad interface. Thankfully, this feature was used only
  in a single function in Darcs.UI.Commands.Util.

patch fbc9ed323a712195b44e7b2c86ac31f25d801101
Author: Ben Franksen <ben.franksen at online.de>
Date:   Tue Feb 26 08:42:27 CET 2019
  * existsAnycase: don't error if subdir is not found
  
  This function queries whether a path exists, disregarding upper/lower case,
  so it makes sense to just return False if a prefix of the path is not found.

__________________________________
Darcs bug tracker <bugs at darcs.net>
<http://bugs.darcs.net/patch1772>
__________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-preview.txt
Type: text/x-darcs-patch
Size: 9951 bytes
Desc: not available
URL: <http://lists.osuosl.org/pipermail/darcs-devel/attachments/20190226/1def6ea4/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: remove-currentdirectory-from-treemonad.dpatch
Type: application/x-darcs-patch
Size: 36736 bytes
Desc: not available
URL: <http://lists.osuosl.org/pipermail/darcs-devel/attachments/20190226/1def6ea4/attachment-0003.bin>
-------------- next part --------------
.





More information about the darcs-devel mailing list