Commit Graph

38 Commits (master)

Author SHA1 Message Date
voussoir 8616cdc5dd
Use new betterhelp. 2022-02-12 19:50:00 -08:00
voussoir 701cf3e0d3
Use pathclass.read, write. 2021-10-04 17:21:14 -07:00
voussoir de5aca14a9
Let gitcheckup push to all remotes. 2021-07-24 12:51:40 -07:00
voussoir 90fe477ad9
Add vlogging to gitcheckup. 2021-07-24 12:51:32 -07:00
voussoir 68a45ab344
Add --run argument to gitcheckup.py. 2021-04-04 17:30:54 -07:00
voussoir 80cdc566cb
Handle case where new repo has no HEAD. 2021-01-23 17:40:34 -08:00
voussoir a065d222ff Handle case where merge-base finds no common commit. 2021-01-15 14:19:54 -08:00
voussoir 51e87c6b0a Add --push to the help text. 2020-10-12 22:15:12 -07:00
voussoir 779802b83e Change the way subprocess exceptions are caught and displayed. 2020-10-08 10:14:34 -07:00
voussoir 853fd395a1 Add --push argument.
It would be most prudent to check with --fetch first, but that's
your perogative.
2020-09-24 14:30:47 -07:00
voussoir 81d0761292 Use pathclass.Path.open. 2020-09-20 18:27:28 -07:00
voussoir cf20c32655 Add arguments --add and --remove to easily edit gitcheckup.txt. 2020-09-02 09:32:16 -07:00
voussoir 16f324ff78 Add helptext to gitcheckup. 2020-08-20 11:10:55 -07:00
voussoir ef3a4a830e Add --pull option to gitcheckup. 2020-08-12 12:21:00 -07:00
voussoir b7fffcc0c8 Various lint appeasements. 2020-08-03 23:47:40 -07:00
voussoir 48e6840c35 Oops, fix rev argument not being used. 2020-02-19 15:08:02 -08:00
voussoir 2b6bbd276e Move all git commands into their own functions. 2020-02-19 14:20:54 -08:00
voussoir 7fc0a5d83c New exc NoConfigFile, can pass directories as arguments. 2020-02-19 14:06:11 -08:00
voussoir 743f25cf48 Merge checkup into gitcheckup_once, organize functions. 2020-02-19 13:31:57 -08:00
voussoir 015957f72d Show NoUpstream error in checkup output. 2020-02-19 12:49:30 -08:00
voussoir e557c1a64f Raise custom exception for NoUpstreamBranch.
Originally I merged these two commands to reduce the number of
subprocess spawns, but I found that the majority of execution time
was git status anyway. These ones are fairly cheap.
2020-02-19 12:01:13 -08:00
voussoir 37093aebe6 Reduce number of unnecessary subprocesses with better conditions.
The code is a little uglier with more ifs and elses but saving
some subprocess calls is worth it.
2020-02-04 19:01:31 -08:00
voussoir 4652f9b745 Centralize subprocess calls into my own check_output function.
Helps me to do debugging on all the calls, and saves me from copying
those parameters all the time.
2020-02-04 18:58:11 -08:00
voussoir 3928922731 Display git subprocess errors upon exception. 2020-01-29 16:39:31 -08:00
voussoir 1d953cc1ed Fix extra space when no commit_details but yes push_details. 2020-01-28 12:41:34 -08:00
voussoir 358ac9acbb Move exception catch and return 1 back to main gitcheckup. 2020-01-28 01:42:37 -08:00
voussoir 88b3baafb8 Move all UI-facing string generation to main gitcheckup. 2020-01-28 01:16:33 -08:00
voussoir eed52e5247 Add function read_directories_file. 2020-01-28 01:14:35 -08:00
voussoir 1abe5a615b Read my_head and remote_head with a single subprocess call. 2020-01-28 01:12:24 -08:00
voussoir 2bc3d4caa6 Add argument --fetch and show number of commits to pull. 2020-01-28 00:57:24 -08:00
voussoir dff9152898 Show number of unpushed commits thanks to new log command. 2020-01-20 21:53:49 -08:00
voussoir 335b7d214a Put gitcheckup directories into a separate config file. 2020-01-12 20:06:14 -08:00
voussoir c5e3b97312 Add argument --untracked-files=all for better file count.
Without it, entire directories are counted as a single item.
I prefer to have the individual files counted.
2020-01-12 20:01:05 -08:00
voussoir ba5bbb2a16 Use `git status --short` for easier parsing.
Thank you kringel8.
2020-01-11 15:04:54 -08:00
voussoir 7863e03a72 Alphabetize imports. 2020-01-11 03:14:01 -08:00
voussoir 7f4bd2baf6 Show [C][P] instead of [x][x]. 2020-01-11 02:58:08 -08:00
voussoir 72b9f34bfe Split checkup into smaller functions, add output samples. 2020-01-11 02:23:07 -08:00
voussoir 78ed021d9f Add gitcheckup.py. 2020-01-11 01:44:20 -08:00