51e87c6b0a
Add --push to the help text.
2020-10-12 22:15:12 -07:00
779802b83e
Change the way subprocess exceptions are caught and displayed.
2020-10-08 10:14:34 -07:00
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
81d0761292
Use pathclass.Path.open.
2020-09-20 18:27:28 -07:00
cf20c32655
Add arguments --add and --remove to easily edit gitcheckup.txt.
2020-09-02 09:32:16 -07:00
16f324ff78
Add helptext to gitcheckup.
2020-08-20 11:10:55 -07:00
ef3a4a830e
Add --pull option to gitcheckup.
2020-08-12 12:21:00 -07:00
b7fffcc0c8
Various lint appeasements.
2020-08-03 23:47:40 -07:00
48e6840c35
Oops, fix rev argument not being used.
2020-02-19 15:08:02 -08:00
2b6bbd276e
Move all git commands into their own functions.
2020-02-19 14:20:54 -08:00
7fc0a5d83c
New exc NoConfigFile, can pass directories as arguments.
2020-02-19 14:06:11 -08:00
743f25cf48
Merge checkup into gitcheckup_once, organize functions.
2020-02-19 13:31:57 -08:00
015957f72d
Show NoUpstream error in checkup output.
2020-02-19 12:49:30 -08:00
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
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
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
3928922731
Display git subprocess errors upon exception.
2020-01-29 16:39:31 -08:00
1d953cc1ed
Fix extra space when no commit_details but yes push_details.
2020-01-28 12:41:34 -08:00
358ac9acbb
Move exception catch and return 1 back to main gitcheckup.
2020-01-28 01:42:37 -08:00
88b3baafb8
Move all UI-facing string generation to main gitcheckup.
2020-01-28 01:16:33 -08:00
eed52e5247
Add function read_directories_file.
2020-01-28 01:14:35 -08:00
1abe5a615b
Read my_head and remote_head with a single subprocess call.
2020-01-28 01:12:24 -08:00
2bc3d4caa6
Add argument --fetch and show number of commits to pull.
2020-01-28 00:57:24 -08:00
dff9152898
Show number of unpushed commits thanks to new log command.
2020-01-20 21:53:49 -08:00
335b7d214a
Put gitcheckup directories into a separate config file.
2020-01-12 20:06:14 -08:00
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
ba5bbb2a16
Use git status --short
for easier parsing.
...
Thank you kringel8.
2020-01-11 15:04:54 -08:00
7863e03a72
Alphabetize imports.
2020-01-11 03:14:01 -08:00
7f4bd2baf6
Show [C][P] instead of [x][x].
2020-01-11 02:58:08 -08:00
72b9f34bfe
Split checkup into smaller functions, add output samples.
2020-01-11 02:23:07 -08:00
78ed021d9f
Add gitcheckup.py.
2020-01-11 01:44:20 -08:00