Skip to contentSkip to conversation

fixup! command: add hmac sum supportfor md5, sha1, sha224, sha256, sha384, sha512

PATCH In review Antony Pavlov 4 participants 6 messages Mar 27, 2015 – Apr 3, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fixup! command: add hmac sum supportfor md5, sha1, sha224, sha256, sha384, sha512

---
 commands/hashsum.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
commands/hashsum.c +1 -1
index e2dc70e..8d3694f 100644
@@ -36,7 +36,7 @@ static int do_hash(char *algo, int argc, char *argv[])
 	size_t keylen = 0;
 	int opt, ret;
 
-	while((opt = getopt(argc, argv, "h:")) > 0) {
+	while ((opt = getopt(argc, argv, "h:")) > 0) {
 		switch(opt) {
 		case 'h':
 			key = optarg;
Signature · 7 lines
2.1.4


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#1 lore raw

please write a better commit

it’s a coding style issue not a fixup
and here more a typo

Fixup means a BUG

Best Regards,
J.

Quoted 27 lines · Antony Pavlov

---
commands/hashsum.c | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
commands/hashsum.c +1 -1
index e2dc70e..8d3694f 100644
@@ -36,7 +36,7 @@ static int do_hash(char *algo, int argc, char *argv[])
 	size_t keylen = 0;
 	int opt, ret;
 
-	while((opt = getopt(argc, argv, "h:")) > 0) {
+	while ((opt = getopt(argc, argv, "h:")) > 0) {
 		switch(opt) {
 		case 'h':
 			key = optarg;
Signature · 7 lines
2.1.4


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

#2 lore raw
Quoted 1 line · On Sun, 29 Mar 2015 04:07:23 +0800 Jean-Christophe PLAGNIOL-VILLARD…

please write a better commit

The commit is made with 'git commit --fixup', so commit message is autogenerated. The patch is send with autosquashing in mind.

Please read http://fle.github.io/git-tip-keep-your-branch-clean-with-fixup-and-autosquash.html
for details.

Quoted 36 lines

it’s a coding style issue not a fixup
and here more a typo

Fixup means a BUG

Best Regards,
J.

Quoted 27 lines · Antony Pavlov

---
commands/hashsum.c | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
commands/hashsum.c +1 -1
index e2dc70e..8d3694f 100644
@@ -36,7 +36,7 @@ static int do_hash(char *algo, int argc, char *argv[])
 	size_t keylen = 0;
 	int opt, ret;
 
-	while((opt = getopt(argc, argv, "h:")) > 0) {
+	while ((opt = getopt(argc, argv, "h:")) > 0) {
 		switch(opt) {
 		case 'h':
 			key = optarg;
Signature · 7 lines
2.1.4


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Signature · 8 lines
-- 
Best regards,
  Antony Pavlov

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#4 lore raw
Quoted 8 lines · On Thu, 2 Apr 2015 09:11:33 +0200 Holger Schurig <[email protected]>…

Antony,

that git has such a function doesn't mean that it is usable in any git project. I too, like Jean-Christophe, that a style issue shouldn't be named as a fix,

You could always do "git commit --amend" to change the message so that it actually describes what happens.

AFAIR Sascha (it's him who applies patches to next) has no problems with "fixup !" patches.

--
Best regards,
  Antony Pavlov

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

#5 lore raw
In reply to Holger Schurig
Quoted 5 lines · Holger Schurig

Antony,

that git has such a function doesn't mean that it is usable in any git project. I too, like Jean-Christophe, that a style issue shouldn't be named as a fix,

The patch Antony sent has been generated with git commit --fixup. I'll apply it to the appropriate branch and run a git rebase --autosquash over it. This makes it very easy for Antony to generate this patch and easy for me to find and fixup the correct patch. We could also use --squash instead of --fixup. That would keep both commit messages, but that might be desirable.

Sascha

Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox