Commit graph

1431 commits

Author SHA1 Message Date
Joey Hess
547d7745fb pre-commit: Update direct mode mappings.
Making the pre-commit hook look at git diff-index to find changed direct
mode files and update the mappings works pretty well.

One case where it does not work is when a file is git annex added, and then
git rmed, and then this is committed. That's a no-op commit, so the hook
probably doesn't even run, and it certianly never notices that the file
was deleted, so the mapping will still have the original filename in it.

For this and other reasons, it's important that the mappings still be
treated as possibly inconsistent.

Also, the assistant now allows the pre-commit hook to run when in direct
mode, so the mappings also get updated there.
2013-02-06 12:44:19 -04:00
Joey Hess
8b7cb14514 blog for the day 2013-02-05 18:02:02 -04:00
Joey Hess
af3a25ee03 Deal with stale mappings for deleted file in direct mode.
The most common way for a mapping to be stale is when a file was deleted,
or renamed. Nothing updates the mappings for deletions yet.
But they can also become stale in other ways. For example a file can
be modified.

So, the mapping is not trusted to be consistent. When we get a key,
only replace symlinks that still point to that key with its content.
When we drop a key, only put back symlinks for files that still have
the direct mode content.
2013-02-05 16:48:00 -04:00
65.183.159.254
ab16c8e4db poll vote (Using only git-annex webapp to config does not seem to work: Create walkthough?) 2013-02-05 19:37:49 +00:00
24.130.145.126
81c020cf90 poll vote (An Ubuntu PPA would be supercool! Thanks for your great work!!) 2013-02-05 17:23:38 +00:00
Joey Hess
d92b341cb2 blog 2013-02-04 09:48:18 -04:00
2.171.73.212
be56665a09 poll vote (Initially the lack of direct-mode. Now concerns about the safety of direct mode. Perhaps after the next release.) 2013-02-03 12:38:35 +00:00
https://www.google.com/accounts/o8/id?id=AItOawmnG4EuvZWse5hvgrl0XAK-U61e-0iGaao
8454c4c39b Added a comment: git commit in direct mode 2013-01-31 08:30:23 +00:00
Joey Hess
02ed3af97d update 2013-01-31 13:59:01 +11:00
Joey Hess
f86841c873 git-remote-gcrypt 2013-01-30 08:04:20 +11:00
92.75.58.98
72132ecb38 poll vote (It's too hard to install (please say why in comments)) 2013-01-28 21:09:46 +00:00
https://www.google.com/accounts/o8/id?id=AItOawl1D_4vD5ueaDw8gRsIYPO3UHRKEpFfg9I
224cb11e0a poll vote (My phone (or MP3 player)) 2013-01-28 03:36:39 +00:00
Joey Hess
0942d3aed3 blog for the day 2013-01-27 22:43:32 +11:00
Joey Hess
bfd409b00f blog for the day 2013-01-26 17:15:14 +11:00
https://www.google.com/accounts/o8/id?id=AItOawlyFDd2xkx0uj738OArDj10CqEkVfWu_mQ
78e03ae000 Added a comment 2013-01-24 15:36:34 +00:00
79.148.197.37
f4a8f560bc poll vote (Waiting for Fedora/CentOS rpm repository.) 2013-01-24 13:46:18 +00:00
hamish
372d5a8db3 Added a comment: AU 2013-01-24 12:50:09 +00:00
152.66.253.77
923a5801d7 poll vote (I need a Windows port) 2013-01-24 07:31:15 +00:00
Joey Hess
eb3dcffec7 blog for some 15 hour period in an indeterminite time zone 2013-01-23 09:37:31 +11:00
https://www.google.com/accounts/o8/id?id=AItOawmYiJgOvC4IDYkr2KIjMlfVD9r_1Sij_jY
ed099ee9fb poll vote (Better documentation/walkthroughs on using git-annex within an existing git repo. AKA mixed use) 2013-01-22 21:53:25 +00:00
107.6.95.15
21cc6b5088 poll vote (I need a Windows port) 2013-01-22 17:25:56 +00:00
76.93.55.232
5cd8ca5880 poll vote (I need a Windows port) 2013-01-22 07:26:22 +00:00
194.208.145.52
a6fb38f741 poll vote (An Ubuntu PPA would be supercool! Thanks for your great work!!) 2013-01-21 11:59:28 +00:00
2a01:e35:2f7b:8350:225:22ff:fe40:fdfc
d6ae0eb093 poll vote (I haven't always well understood the differences between commandline operation & the assistant, so the differences would confuse me, and I found the command line more understandable & less scary. Now trying to learn to like & trust the assistant. :)) 2013-01-21 09:22:21 +00:00
2406:e000:316:14:c834:9bf0:7b0c:9df7
8a906b7056 poll vote (Replaces files with a symlink mess.) 2013-01-20 23:03:17 +00:00
2406:e000:316:14:c834:9bf0:7b0c:9df7
f887e43c57 poll vote (I need a Windows port) 2013-01-20 22:59:52 +00:00
87.114.185.204
db9efd0409 poll vote (I need a Windows port) 2013-01-20 17:14:27 +00:00
24.21.48.69
16ab0c01f9 poll vote (An Ubuntu PPA would be supercool! Thanks for your great work!!) 2013-01-20 10:29:24 +00:00
EskildHustvedt
7d4c032864 Added a comment: Presentation video 2013-01-19 22:09:50 +00:00
https://www.google.com/accounts/o8/id?id=AItOawl9sYlePmv1xK-VvjBdN-5doOa_Xw-jH4U
d135f68eab Added a comment 2013-01-19 20:40:52 +00:00
71.246.220.45
80b200280d poll vote (Google Drive) 2013-01-19 20:26:50 +00:00
Joey Hess
c688046dac blog for the weekend 2013-01-19 16:22:00 -04:00
http://joeyh.name/
832ae0dcce Added a comment 2013-01-19 16:09:15 +00:00
80.46.100.222
5f4d09f81e poll vote (I need a Windows port) 2013-01-19 15:36:40 +00:00
https://www.google.com/accounts/o8/id?id=AItOawmRFKwny4rArBaz-36xTcsJYqKIgdDaw5Q
d914de1cf5 Added a comment 2013-01-19 07:23:39 +00:00
https://launchpad.net/~rubiojr
c5a421368f Added a comment 2013-01-18 18:42:35 +00:00
https://www.google.com/accounts/o8/id?id=AItOawkvSZ1AFJdY_1FeutZr_KWeqtzjZta1PNE
6e70f78298 poll vote (Google Drive) 2013-01-18 16:27:34 +00:00
46.223.62.193
1f3f575be9 poll vote (My phone (or MP3 player)) 2013-01-18 08:39:48 +00:00
128.54.45.230
acf0a38919 poll vote (Initially the lack of direct-mode. Now concerns about the safety of direct mode. Perhaps after the next release.) 2013-01-18 05:52:39 +00:00
Joey Hess
07a8c87af4 blog for the day 2013-01-17 21:19:34 -04:00
Joey Hess
e15e987ce1 mediafire 2013-01-17 16:36:15 -04:00
http://christian.amsuess.com/chrysn
f1e30f7104 Added a comment 2013-01-17 12:04:34 +00:00
http://christian.amsuess.com/chrysn
b1cb40ee95 poll vote (I need to be able to restrict in which repo dirs changes get auto-committed) 2013-01-17 11:57:36 +00:00
128.61.104.52
be2736f6e2 poll vote (I'm really confused about how to make it sync with a remote NON-bare repository. I'm even afraid to try git remote add, since there is no clear method to completely forget a git-annex remote...) 2013-01-17 04:00:21 +00:00
78.97.171.23
50ddd46a3e poll vote (I need a Windows port) 2013-01-16 21:08:05 +00:00
78.97.171.23
fd110cd22a poll vote (I need an Android port) 2013-01-16 21:07:52 +00:00
Joey Hess
fc3ae389f3 brief blog for the day 2013-01-16 15:58:59 -04:00
http://joeyh.name/
ac9854cb4c Added a comment 2013-01-16 19:38:36 +00:00
2a02:418:9999::94
adfbde40ce poll vote (Provide .deb package) 2013-01-16 16:08:38 +00:00
188.216.191.7
0794acaf8c poll vote (Initially the lack of direct-mode. Now concerns about the safety of direct mode. Perhaps after the next release.) 2013-01-16 15:15:36 +00:00