This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
On 09 Feb 2017 16:35, Florian Weimer wrote:
> +export LC_ALL=C
why ? seems like it'll mishandle UTF8 ?
> +usage () {
we seem to be inconsistent, but i prefer no spaces before () ...
> + cat >&2 <<EOF
style is weird. what's with the 4 space indent ?
we use two spaces normally.
> +if test $# -ne 1 ; then
`test` instead of `[` ?
i think we normally omit the space before the ;
> +case "$command" in
> + patch|commit)
> + ;;
> + *)
> + usage
> + ;;
> +esac
now we mix tabs ?
> +# Simplify the branch name somewhat for reporting.
> +branch_name="$(echo "$branch" | sed s,^origin/,,)"
branch_name=${branch#origin/}
> + git status --porcelain | while read line ; do
this creates a subshell. you really want:
while read -d $'0' -r line; do
...
done < <(git status --porcelain)
should also have `local line`
-mike
Attachment:
signature.asc
Description: Digital signature
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |