Joey Hess 
								
							 
						 
						
							
							
								
							
							
	
	
	0a4479b8ec 
 
						 
						
							
							
								
								
								Avoid backtraces on expected failures when built with ghc 8; only use backtraces for unexpected errors.  
							
							 
							
							... 
							
							
							
							ghc 8 added backtraces on uncaught errors. This is great, but git-annex was
using error in many places for a error message targeted at the user, in
some known problem case. A backtrace only confuses such a message, so omit it.
Notably, commands like git annex drop that failed due to eg, numcopies,
used to use error, so had a backtrace.
This commit was sponsored by Ethan Aubin. 
							
						 
						
							2016-11-15 21:29:54 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Joey Hess 
								
							 
						 
						
							
							
								
							
							
	
	
	166d70db77 
 
						 
						
							
							
								
								
								convert TMVars that are never left empty into TVars  
							
							 
							
							... 
							
							
							
							This is probably more efficient, and it avoids mistakenly leaving them
empty. 
							
						 
						
							2016-09-30 19:51:16 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Joey Hess 
								
							 
						 
						
							
							
								
							
							
	
	
	1010482bc7 
 
						 
						
							
							
								
								
								webapp: When $HOME is a git repository, and has been initialized for use by git-annex, opening the webapp went ahead and ran the assistant there, annexing all files. Since this is almost certianly not desirable, especially when the user is just opening the webapp from a dekstop menu which happens to run it in $HOME, the webapp will now not treat such a $HOME git repository as a git-annex repository.  
							
							 
							
							
							
						 
						
							2016-04-13 14:07:50 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Joey Hess 
								
							 
						 
						
							
							
								
							
							
	
	
	737e45156e 
 
						 
						
							
							
								
								
								remove 163 lines of code without changing anything except imports  
							
							 
							
							
							
						 
						
							2016-01-20 16:36:33 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Joey Hess 
								
							 
						 
						
							
							
								
							
							
	fd086c5752  
						 
						
							
							
								
								
								convert WebApp; avoid duplicate arg parsing for no repo mode  
							
							 
							
							
							
						 
						
							2015-07-13 11:53:42 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Joey Hess 
								
							 
						 
						
							
							
								
							
							
	92d8f80bff  
						 
						
							
							
								
								
								support cmdnorepo actions, also using getopt-applicative there  
							
							 
							
							
							
						 
						
							2015-07-08 15:39:05 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Joey Hess 
								
							 
						 
						
							
							
								
							
							
	6e5c1f8db3  
						 
						
							
							
								
								
								convert all commands to work with optparse-applicative  
							
							 
							
							... 
							
							
							
							Still no options though. 
							
						 
						
							2015-07-08 15:08:02 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Joey Hess 
								
							 
						 
						
							
							
								
							
							
	a2ba701056  
						 
						
							
							
								
								
								started converting to use optparse-applicative  
							
							 
							
							... 
							
							
							
							This is a work in progress. It compiles and is able to do basic command
dispatch, including git autocorrection, while using optparse-applicative
for the core commandline parsing.
* Many commands are temporarily disabled before conversion.
* Options are not wired in yet.
* cmdnorepo actions don't work yet.
Also, removed the [Command] list, which was only used in one place. 
							
						 
						
							2015-07-08 13:36:25 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Joey Hess 
								
							 
						 
						
							
							
								
							
							
	addc82dab7  
						 
						
							
							
								
								
								removed all uses of undefined from code base  
							
							 
							
							... 
							
							
							
							It's a code smell, can lead to hard to diagnose error messages. 
							
						 
						
							2015-04-19 00:38:29 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Joey Hess 
								
							 
						 
						
							
							
								
							
							
	bcf1b59c1b  
						 
						
							
							
								
								
								webapp: Fix reversion in opening webapp when starting it manually inside a repository.  
							
							 
							
							
							
						 
						
							2015-02-09 16:34:42 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Joey Hess 
								
							 
						 
						
							
							
								
							
							
	afc5153157  
						 
						
							
							
								
								
								update my email address and homepage url  
							
							 
							
							
							
						 
						
							2015-01-21 12:50:09 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Joey Hess 
								
							 
						 
						
							
							
								
							
							
	4d681ae38b  
						 
						
							
							
								
								
								warning  
							
							 
							
							
							
						 
						
							2014-10-14 14:29:53 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Joey Hess 
								
							 
						 
						
							
							
								
							
							
	59f88558d5  
						 
						
							
							
								
								
								doh't use "def" for command definitions, it conflicts with Data.Default.def  
							
							 
							
							
							
						 
						
							2014-10-14 14:20:10 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Joey Hess 
								
							 
						 
						
							
							
								
							
							
	a44fd2c019  
						 
						
							
							
								
								
								export CreateProcess fields from Utility.Process  
							
							 
							
							... 
							
							
							
							update code to avoid cwd and env redefinition warnings 
							
						 
						
							2014-06-10 19:20:14 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Joey Hess 
								
							 
						 
						
							
							
								
							
							
	6eb5e6c135  
						 
						
							
							
								
								
								Windows: Fix opening webapp when repository is in a directory with spaces in the path.  
							
							 
							
							
							
						 
						
							2014-06-10 18:37:33 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Joey Hess 
								
							 
						 
						
							
							
								
							
							
	9adcf8fff5  
						 
						
							
							
								
								
								webapp: More robust startup when annex directory is not a git repo or not intialized by git-annex.  
							
							 
							
							
							
						 
						
							2014-05-21 15:41:54 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Joey Hess 
								
							 
						 
						
							
							
								
							
							
	4ce64ff998  
						 
						
							
							
								
								
								webapp: Start even if the current directory is listed in ~/.config/git-annex/autostart but no longer has a git repository in it.  
							
							 
							
							
							
						 
						
							2014-04-17 16:47:49 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Joey Hess 
								
							 
						 
						
							
							
								
							
							
	d626a784f3  
						 
						
							
							
								
								
								webapp: detect on first run if git is not installed, and tell the user, rather than crashing non-informatively  
							
							 
							
							... 
							
							
							
							Mostly for Windows, which has no sane package management.. 
							
						 
						
							2014-03-05 13:43:56 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Joey Hess 
								
							 
						 
						
							
							
								
							
							
	6a355686ff  
						 
						
							
							
								
								
								annex.listen can be configured, instead of using --listen  
							
							 
							
							
							
						 
						
							2014-03-01 00:31:17 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Joey Hess 
								
							 
						 
						
							
							
								
							
							
	f70d0479d5  
						 
						
							
							
								
								
								webapp: Refuse to start in a bare git repository.  
							
							 
							
							
							
						 
						
							2014-02-28 19:44:15 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Joey Hess 
								
							 
						 
						
							
							
								
							
							
	cce69eee4d  
						 
						
							
							
								
								
								avoid using function named that conflicts with name used in newer version of process library  
							
							 
							
							
							
						 
						
							2014-01-29 13:44:53 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Joey Hess 
								
							 
						 
						
							
							
								
							
							
	74b101d1dd  
						 
						
							
							
								
								
								reorg  
							
							 
							
							
							
						 
						
							2014-01-26 16:36:31 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Joey Hess 
								
							 
						 
						
							
							
								
							
							
	86ffeb73d1  
						 
						
							
							
								
								
								reorganize some files and imports  
							
							 
							
							
							
						 
						
							2014-01-26 16:25:55 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Joey Hess 
								
							 
						 
						
							
							
								
							
							
	34c8af74ba  
						 
						
							
							
								
								
								fix inversion of control in CommandSeek (no behavior changes)  
							
							 
							
							... 
							
							
							
							I've been disliking how the command seek actions were written for some
time, with their inversion of control and ugly workarounds.
The last straw to fix it was sync --content, which didn't fit the
Annex [CommandStart] interface well at all. I have not yet made it take
advantage of the changed interface though.
The crucial change, and probably why I didn't do it this way from the
beginning, is to make each CommandStart action be run with exceptions
caught, and if it fails, increment a failure counter in annex state.
So I finally remove the very first code I wrote for git-annex, which
was before I had exception handling in the Annex monad, and so ran outside
that monad, passing state explicitly as it ran each CommandStart action.
This was a real slog from 1 to 5 am.
Test suite passes.
Memory usage is lower than before, sometimes by a couple of megabytes, and
remains constant, even when running in a large repo, and even when
repeatedly failing and incrementing the error counter. So no accidental
laziness space leaks.
Wall clock speed is identical, even in large repos.
This commit was sponsored by an anonymous bitcoiner. 
							
						 
						
							2014-01-20 04:57:36 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Joey Hess 
								
							 
						 
						
							
							
								
							
							
	fa3045aa8b  
						 
						
							
							
								
								
								make "git annex help options" work outside a git repo  
							
							 
							
							... 
							
							
							
							Option parsing for commands that run outside git repos is still screwy,
as there is no Annex monad and so the flags cannot be passed in. But,
any remaining parameters can be, which is enough for this fix. 
							
						 
						
							2013-11-30 15:18:40 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Joey Hess 
								
							 
						 
						
							
							
								
							
							
	9c20185f55  
						 
						
							
							
								
								
								webapp: Check annex.version.  
							
							 
							
							
							
						 
						
							2013-11-17 14:58:35 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Joey Hess 
								
							 
						 
						
							
							
								
							
							
	2233ddd5a2  
						 
						
							
							
								
								
								assistant: When autostarted, wait 5 seconds before running the startup scan, to avoid contending with the user's desktop login process.  
							
							 
							
							
							
						 
						
							2013-10-26 12:42:58 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Joey Hess 
								
							 
						 
						
							
							
								
							
							
	b405295aee  
						 
						
							
							
								
								
								hlint  
							
							 
							
							... 
							
							
							
							test suite still passes 
							
						 
						
							2013-09-25 03:09:06 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Joey Hess 
								
							 
						 
						
							
							
								
							
							
	c46b263fde  
						 
						
							
							
								
								
								Android: Make the "Open webapp" menu item open the just created repository when a new repo is made.  
							
							 
							
							
							
						 
						
							2013-06-10 23:55:53 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Joey Hess 
								
							 
						 
						
							
							
								
							
							
	91c9ae83f1  
						 
						
							
							
								
								
								squash warning  
							
							 
							
							
							
						 
						
							2013-06-02 14:06:17 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Joey Hess 
								
							 
						 
						
							
							
								
							
							
	a48d340abd  
						 
						
							
							
								
								
								Android: Work around Android devices where the am command doesn't work.  
							
							 
							
							
							
						 
						
							2013-05-31 21:30:21 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Joey Hess 
								
							 
						 
						
							
							
								
							
							
	cba2942cda  
						 
						
							
							
								
								
								Revert "android dupped stderr workaround"  
							
							 
							
							... 
							
							
							
							This reverts commit 4cc803c733 .
The stderr fd is also trashed after `am` fails to open the web browser. 
							
						 
						
							2013-05-30 16:27:10 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Joey Hess 
								
							 
						 
						
							
							
								
							
							
	4cc803c733  
						 
						
							
							
								
								
								android dupped stderr workaround  
							
							 
							
							... 
							
							
							
							Avoid using dupped stderr, since
http://git-annex.branchable.com/bugs/warning_-_WebApp_crashed:___60__file_descriptor_15__62__:_hPutStr:_illegal_operation___40__handle_is_closed__41___on_Android/#comment-a24c73803fb10bd35afdc10d50e071c8 
seems to involve that handle not being dupped originally, or perhaps
getting closed when the web browser is started on Android.
Using the dupped stdout is known to work before starting the web browser,
so it should work after -- unless perhaps starting it closes both handles.
In any case, there's no real need to write to stderr here. 
							
						 
						
							2013-05-30 13:55:22 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Joey Hess 
								
							 
						 
						
							
							
								
							
							
	3e2d50a336  
						 
						
							
							
								
								
								Android: Added an "Open WebApp" item to the terminal's menu. Should work for Android devices that cannot auto-open the webapp on start.  
							
							 
							
							
							
						 
						
							2013-05-28 18:25:27 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Joey Hess 
								
							 
						 
						
							
							
								
							
							
	1e2ddcb68a  
						 
						
							
							
								
								
								use setCurrentDirectory  
							
							 
							
							... 
							
							
							
							On POSIX, this just calls changeWorkingDirectory. 
							
						 
						
							2013-05-11 19:14:30 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Joey Hess 
								
							 
						 
						
							
							
								
							
							
	18bdff3fae  
						 
						
							
							
								
								
								clean up from windows porting  
							
							 
							
							
							
						 
						
							2013-05-11 18:23:41 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Joey Hess 
								
							 
						 
						
							
							
								
							
							
	886897f627  
						 
						
							
							
								
								
								fix build  
							
							 
							
							
							
						 
						
							2013-05-02 20:38:57 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Joey Hess 
								
							 
						 
						
							
							
								
							
							
	29df1a6bec  
						 
						
							
							
								
								
								fix build  
							
							 
							
							
							
						 
						
							2013-05-02 19:10:30 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Joey Hess 
								
							 
						 
						
							
							
								
							
							
	6dca92defe  
						 
						
							
							
								
								
								need cpp  
							
							 
							
							
							
						 
						
							2013-05-02 19:00:50 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Joey Hess 
								
							 
						 
						
							
							
								
							
							
	1e9b8e1467  
						 
						
							
							
								
								
								cannot open file:// url on Android, so don't use the htmlshim there  
							
							 
							
							
							
						 
						
							2013-05-02 16:46:47 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Bruno Bigras 
								
							 
						 
						
							
							
								
							
							
	0fe8eb0953  
						 
						
							
							
								
								
								Fix the URL not showing until the app closes  
							
							 
							
							
							
						 
						
							2013-05-01 15:48:16 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Joey Hess 
								
							 
						 
						
							
							
								
							
							
	2c42e70f6c  
						 
						
							
							
								
								
								rename module  
							
							 
							
							
							
						 
						
							2013-04-23 11:38:52 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Joey Hess 
								
							 
						 
						
							
							
								
							
							
	9cb223a8b3  
						 
						
							
							
								
								
								Detect systems that have no user name set in GECOS, and also don't have user.name set in git config, and put in a workaround so that commits to the git-annex branch (and the assistant) will still succeed despite git not liking the system configuration.  
							
							 
							
							
							
						 
						
							2013-04-22 15:36:34 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Joey Hess 
								
							 
						 
						
							
							
								
							
							
	911506bc93  
						 
						
							
							
								
								
								untested browser opening on Android  
							
							 
							
							... 
							
							
							
							I've found multiple references to using the `am` command from the adb shell
to open a browser. So I assume it also works in a terminal emulator. 
							
						 
						
							2013-04-18 12:52:55 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Joey Hess 
								
							 
						 
						
							
							
								
							
							
	5e2e4347a3  
						 
						
							
							
								
								
								webapp: New --listen= option allows running the webapp on one computer and connecting to it from another.  
							
							 
							
							... 
							
							
							
							Does not yet use HTTPS. I'd need to generate a certificate, and I'm not
sure what's the best way to do that. 
							
						 
						
							2013-04-08 15:04:35 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Joey Hess 
								
							 
						 
						
							
							
								
							
							
	021c564319  
						 
						
							
							
								
								
								clean up urlrenderer handling when the webapp is not built  
							
							 
							
							
							
						 
						
							2013-04-03 17:48:54 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Joey Hess 
								
							 
						 
						
							
							
								
							
							
	cfd3b16fe1  
						 
						
							
							
								
								
								add section metadata to all commands  
							
							 
							
							... 
							
							
							
							Not yet used .. mindless train work. 
							
						 
						
							2013-03-24 18:28:21 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Joey Hess 
								
							 
						 
						
							
							
								
							
							
	08bdea7e52  
						 
						
							
							
								
								
								webapp: New preferences page allows enabling/disabling debug logging at runtime, as well as configuring numcopies and diskreserve.  
							
							 
							
							
							
						 
						
							2013-03-03 17:07:27 -04:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Joey Hess 
								
							 
						 
						
							
							
								
							
							
	76ddf9b6d3  
						 
						
							
							
								
								
								webapp: Now allows restarting any threads that crash.  
							
							 
							
							
							
						 
						
							2013-01-26 17:09:33 +11:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Joey Hess 
								
							 
						 
						
							
							
								
							
							
	1713ed95f7  
						 
						
							
							
								
								
								use async to track and manage threads  
							
							 
							
							
							
						 
						
							2013-01-26 14:14:32 +11:00