mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] fixup! command: add hmac sum supportfor md5, sha1, sha224, sha256, sha384, sha512
@ 2015-03-27 16:23 Antony Pavlov
  2015-03-28 20:07 ` Jean-Christophe PLAGNIOL-VILLARD
  0 siblings, 1 reply; 6+ messages in thread
From: Antony Pavlov @ 2015-03-27 16:23 UTC (permalink / raw)
  To: barebox

---
 commands/hashsum.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/commands/hashsum.c b/commands/hashsum.c
index e2dc70e..8d3694f 100644
--- a/commands/hashsum.c
+++ b/commands/hashsum.c
@@ -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;
-- 
2.1.4


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] fixup! command: add hmac sum supportfor md5, sha1, sha224, sha256, sha384, sha512
  2015-03-27 16:23 [PATCH] fixup! command: add hmac sum supportfor md5, sha1, sha224, sha256, sha384, sha512 Antony Pavlov
@ 2015-03-28 20:07 ` Jean-Christophe PLAGNIOL-VILLARD
  2015-03-29  8:04   ` Antony Pavlov
  0 siblings, 1 reply; 6+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2015-03-28 20:07 UTC (permalink / raw)
  To: Antony Pavlov; +Cc: barebox

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.
> On Mar 28, 2015, at 12:23 AM, Antony Pavlov <antonynpavlov@gmail.com> wrote:
> 
> ---
> commands/hashsum.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/commands/hashsum.c b/commands/hashsum.c
> index e2dc70e..8d3694f 100644
> --- a/commands/hashsum.c
> +++ b/commands/hashsum.c
> @@ -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;
> -- 
> 2.1.4
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] fixup! command: add hmac sum supportfor md5, sha1, sha224, sha256, sha384, sha512
  2015-03-28 20:07 ` Jean-Christophe PLAGNIOL-VILLARD
@ 2015-03-29  8:04   ` Antony Pavlov
  2015-04-02  7:11     ` Holger Schurig
  0 siblings, 1 reply; 6+ messages in thread
From: Antony Pavlov @ 2015-03-29  8:04 UTC (permalink / raw)
  To: Jean-Christophe PLAGNIOL-VILLARD; +Cc: barebox

On Sun, 29 Mar 2015 04:07:23 +0800
Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> wrote:

> 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.

> 
> it’s a coding style issue not a fixup
> and here more a typo
> 
> Fixup means a BUG
> 
> Best Regards,
> J.
> > On Mar 28, 2015, at 12:23 AM, Antony Pavlov <antonynpavlov@gmail.com> wrote:
> > 
> > ---
> > commands/hashsum.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/commands/hashsum.c b/commands/hashsum.c
> > index e2dc70e..8d3694f 100644
> > --- a/commands/hashsum.c
> > +++ b/commands/hashsum.c
> > @@ -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;
> > -- 
> > 2.1.4
> > 
> > 
> > _______________________________________________
> > barebox mailing list
> > barebox@lists.infradead.org
> > http://lists.infradead.org/mailman/listinfo/barebox
> 


-- 
-- 
Best regards,
  Antony Pavlov

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] fixup! command: add hmac sum supportfor md5, sha1, sha224, sha256, sha384, sha512
  2015-03-29  8:04   ` Antony Pavlov
@ 2015-04-02  7:11     ` Holger Schurig
  2015-04-02  7:27       ` Antony Pavlov
  2015-04-03  6:15       ` Sascha Hauer
  0 siblings, 2 replies; 6+ messages in thread
From: Holger Schurig @ 2015-04-02  7:11 UTC (permalink / raw)
  To: Antony Pavlov; +Cc: barebox

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.

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] fixup! command: add hmac sum supportfor md5, sha1, sha224, sha256, sha384, sha512
  2015-04-02  7:11     ` Holger Schurig
@ 2015-04-02  7:27       ` Antony Pavlov
  2015-04-03  6:15       ` Sascha Hauer
  1 sibling, 0 replies; 6+ messages in thread
From: Antony Pavlov @ 2015-04-02  7:27 UTC (permalink / raw)
  To: Holger Schurig; +Cc: barebox

On Thu, 2 Apr 2015 09:11:33 +0200
Holger Schurig <holgerschurig@gmail.com> wrote:

> 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
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] fixup! command: add hmac sum supportfor md5, sha1, sha224, sha256, sha384, sha512
  2015-04-02  7:11     ` Holger Schurig
  2015-04-02  7:27       ` Antony Pavlov
@ 2015-04-03  6:15       ` Sascha Hauer
  1 sibling, 0 replies; 6+ messages in thread
From: Sascha Hauer @ 2015-04-03  6:15 UTC (permalink / raw)
  To: Holger Schurig; +Cc: barebox

On Thu, Apr 02, 2015 at 09:11:33AM +0200, Holger Schurig wrote:
> 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


-- 
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
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-04-03  6:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-27 16:23 [PATCH] fixup! command: add hmac sum supportfor md5, sha1, sha224, sha256, sha384, sha512 Antony Pavlov
2015-03-28 20:07 ` Jean-Christophe PLAGNIOL-VILLARD
2015-03-29  8:04   ` Antony Pavlov
2015-04-02  7:11     ` Holger Schurig
2015-04-02  7:27       ` Antony Pavlov
2015-04-03  6:15       ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox