Hi!

> I wonder if you could unignore .git folder and depend on whatever file there 
> that represents the last pull status.
>
> Otherwise you could maybe have a wrapper that dumps git logs to a file before 
> every run.

Excellent workaround ideas! For now I solved it by

1. hard linking ./.git/logs/HEAD to ./gitlog
2. using ./gitlog as input and copying it to ./gitlog_dummy in rule
that depends on the output of `git log`

which is not a very exact solution, and also requires setting up the hard link.

> But you can fool it using a gitfile 
> (https://git-scm.com/docs/gitrepository-layout#_description):
>
> $ mv .git .git_folder
> $ echo "gitdir: .git_folder" > .git

This did work (tup started including the .git_folder), but not in my
specific use case (I think because of the "immutable" nature of git
and what i was logging?)

> Does anyone know of a way to instruct tup to always re-run a rule?

Still of interest to me!! If it is not possible then I'll see, maybe
I'll poke around the tup source and see if I can just add a ^v
"volatile" flag or something. Trying to avoid sidetracking too heavily
though (always my problem hahh).

Best regards!
/Ivan

-- 
-- 
tup-users mailing list
email: tup-users@googlegroups.com
unsubscribe: tup-users+unsubscr...@googlegroups.com
options: http://groups.google.com/group/tup-users?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"tup-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tup-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tup-users/CAORM-NJDyjNosouwKzegLagYrNfFiay_vrLHZac7um4VhzZvLQ%40mail.gmail.com.

Reply via email to