News for hackers. Stuff that matters.
Re:Four rules for effective collaboration – Guidelines for b... by chiefalchemist on Wednesday March 07, 2018 @07:35AM (#16535933)
This should be retitled: Reasons Why The CL is Flawed.

Long to short, why can't this be a form of some sort? Engineers / developers have enough to worry about, why add more minutia to the pile?

The CL is not an adequate OSFA solution. If quality and quantity is a concern, when is that going to be addressed?

Re:Four rules for effective collaboration – Guidelines for b... by noxToken on Wednesday March 07, 2018 @09:11AM (#16536412)
I don't understand what a form has to do with CL tools and their weaknesses. If you think that a form would help create better commits and commit messages, you can set one up in the CL. You can think of all of Git's interactive options as forms or wizards.

There is also pulling commit messages from a file. The commit -F /path/to/file switch allows you to specify a file that Git will pull text from. I try to write my commit messages before I make a change, because it helps me ensure that everything I'm working on satisfies the single-thing-per-commit rule. I always update the same file, so I made it an alias:

    git config --global alias.commit-txt 'commit -F ~/commit.txt'
Edit: If you're unfamiliar with how aliases work, you create one with the above invocation. The portion after alias. is the command you define and want to type. The portion in single-quotes is the actual git command. Thus, you'd type

    $ git commit-txt
to use the above command. What the command line sees is

    $ git commit -F ~/commit.txt
Re:Four rules for effective collaboration – Guidelines for b... by chiefalchemist on Saturday March 10, 2018 @11:14PM (#16561670)
A form would allow a team to define what gets entered, just like a checkout form defines a sellers needs. As it is, it's left up to human memory. That's flawed. I thought we knew and agreed on this.
Re:Four rules for effective collaboration – Guidelines for b... by Cthulhu_ on Wednesday March 07, 2018 @09:43AM (#16536670)
> Long to short, why can't this be a form of some sort? Engineers / developers have enough to worry about, why add more minutia to the pile?

It can! See Commitizen and its cli, used by e.g. the Angular project, which offers a cli wizard for filling in a commit message - type (fix, feature, chore, ci, doc, etc), scope (depends on project, one word category), short description, backwards-incompatble changes, etc; see http://commitizen.github.io/cz-cli/. This system can then be used to generate changelogs and do semantic versioning compatible version bumps - patch releases if the diff since the last tag only contains 'fix', minor if it contains 'feat', major if it contains backwards incompatible changes.

Re:Four rules for effective collaboration – Guidelines for b... by jwilk on Wednesday March 07, 2018 @08:08AM (#16536081)
What's CL?
Re:Four rules for effective collaboration – Guidelines for b... by jakobbuis on Wednesday March 07, 2018 @09:23AM (#16536502)
Commit log
Re:Four rules for effective collaboration – Guidelines for b... by whelchel on Wednesday March 07, 2018 @08:15AM (#16536112)
Command line it seems
Re:Four rules for effective collaboration – Guidelines for b... by neogodless on Wednesday March 07, 2018 @01:21PM (#16538497)
What's OSFA?
Re:Four rules for effective collaboration – Guidelines for b... by deiwin on Wednesday March 07, 2018 @02:07PM (#16538898)
One Size Fits All, probably.