Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic Darcs + Pijul support (ignoring VCS dirs); Direnv (separated) #503

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

toastal
Copy link

@toastal toastal commented Jul 15, 2024

Darcs https://darcs.net & Pijul https://pijul.org/ are decentralized version control systems.

Advanced Darcs support would be adding .boring file support like .gitignore, but it uses a different syntax. Pijul ignorefiles use .ignore which use the same as the Git-branded, .gitignore file… so more advanced support could be added.

@toastal
Copy link
Author

toastal commented Jul 16, 2024

Works for me in a Nix overlay

{
   overlays = {
      tools = final: prev: {
         tup = prev.tup.overrideAttrs (
            finalAttrs: prevAttrs: {
               version = "0.8.0+2024-06-06";
               src = final.fetchzip {
                  url = "https://github.com/gittup/tup/archive/4247a523587df54bd4a65ec42c4247a8488c050e.tar.gz";
                  hash = "sha256-vHzfUf7O7DoiuyxCu/zpXmQcqcyBOJoF5UM4CTtB1B8=";
               };
               patches = (prev.patches or [ ]) ++ [
                  (final.fetchpatch {
                     url = "https://github.com/toastal/tup/commit/2ec088e9ee39c277c6c744bcfb5bc68c1c8088b7.patch";
                     hash = "sha256-hk1RS+S4Dhb0rXj2gjPUUkpcie+8LD7WpKa+JOQ3chw=";
                  })
                  (final.fetchpatch {
                      url = "https://github.com/toastal/tup/commit/971ef896830c8e092062bd5a362ce84403642f23.patch";
                      hash = "sha256-tpGqd37uCRq0aKuIhg1R6wI5UFRAYQ1u4VzYs2sNSgo=";
                   })
               ];
            }
         );
      };
   };
}

@toastal
Copy link
Author

toastal commented Jul 18, 2024

@gittup is there a way to say these fairly trivial patches are 0BSD or BSD-2-Clause or something? I’m not against CLAs in theory for the purpose of developers getting some additional income, but I do not wish to sign this CLA as I do not want to share the required private personal info.

@toastal toastal changed the title Basic Darcs support (ignoring VCS dir) Basic Darcs + Pijul support (ignoring VCS dirs) Jul 18, 2024
@toastal toastal force-pushed the darcs-support branch 2 times, most recently from f3d209e to 971ef89 Compare July 18, 2024 15:02
@toastal
Copy link
Author

toastal commented Jul 28, 2024

I added Direnv like #475 but in a separate commit so it can be dropped if not wanted.

@toastal toastal changed the title Basic Darcs + Pijul support (ignoring VCS dirs) Basic Darcs + Pijul support (ignoring VCS dirs); Direnv (separated) Jul 28, 2024
src/tup/path.c Outdated Show resolved Hide resolved
Darcs <https://darcs.net> is a decentralized version control system.
Advanced support would be adding .boring file support like .gitignore.
Pijul <https://pijul.org> is a decentralized version control system.

Ignorefile use .ignore which use the same as the Git-branded,
.gitignore file… so more advanced support could be added.
Direnv <https://direnv.net> is a tool for tracking your local developer
environment. With the rise of Nix popularity & its hooks for local Nix
development, this tool has become quite popular, but it caches changes
in a local directory that makes Tup noisy.

This commit is a duplicate of another proposed patch, however, unlike
that patchset, this is standalone.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants