shithub: git9

Download patch

ref: b45074a16d0978dde8ea21d5741defd174162228
parent: a24870e98c772b11ea24b64ee2452cc349c5aee6
author: Ori Bernstein <[email protected]>
date: Tue Jan 7 09:36:31 EST 2020

update readme and manpage for commit (thanks alban)

--- a/README
+++ b/README
@@ -71,7 +71,7 @@
 	cd subdir/name
 	git/add foo.c
 	diff bar.c /mnt/git/HEAD/
-	git/commit
+	git/commit foo.c
 	git/push
 
 Commits are presented as directories with the following
@@ -130,7 +130,7 @@
 	save:	The gnarly bits for storing the files for a commit.
 	conf:	A program to extract information from a config file.
 	clone:	Clones a repository.
-	commit:	Commits a snapshot of the working directory.
+	commit:	Commits a snapshot of the selected files.
 	log:	Prints the contents of a commmit log.
 	add:	Tells the repository to add a file to the next commit.
 	walk:	`du`, but for git status.
@@ -142,4 +142,4 @@
 TODOs
 -----
 
-Documentation is sparse.
\ No newline at end of file
+Documentation is sparse.
--- a/git.1
+++ b/git.1
@@ -272,9 +272,7 @@
 
 .PP
 .B Git/commit
-creates a new commit reflecting the state of the current repository.
-It takes no arguments: all files must be added or removed using git/add.
-If a file does not exist in the working directory, it is treated as though it was removed.
+creates a new commit which updates the files passed.
 
 .PP
 .B Git/branch
@@ -422,7 +420,7 @@
 git/clone git://github.com/Harvey-OS/harvey
 cd harvey
 # edit files
-git/commit
+git/commit foo.c
 git/push
 .EE