lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CA+55aFy8juoxVUsRXyjoZKZiU9oeOxqXTOdieYboX9HLtQZTAg@mail.gmail.com>
Date:	Tue, 6 Dec 2011 09:21:24 -0800
From:	Linus Torvalds <torvalds@...ux-foundation.org>
To:	Al Viro <viro@...iv.linux.org.uk>
Cc:	linux-kernel@...r.kernel.org, linux-fsdevel@...r.kernel.org
Subject: Re: [git pull] apparmor fix for __d_path() misuse

On Tue, Dec 6, 2011 at 8:41 AM, Al Viro <viro@...iv.linux.org.uk> wrote:
>
> Is there any way to have git to complain if you are pushing the current
> branch with uncommitted changes in your repository?

Git has hooks you can use for many ops, but that isn't one of them.
The hooks tend to be at the other end (ie around doing things that
change *your* repository, rather than change some remote repository).
So there are hooks around commit-like operations and around fetching
(so you can check that certain rules apply), but not for pushing.

That said, depending on *how* you push, you can fake it. For example,
since I push to multiple repositories (kernel.org and github, and
before I used github I used to have a separate "backup location" at a
linux-foundation site), I actually don't use "git push" to update
remote repositories, I have a git alias called "push-all" that pushes
to multiple remotes in one go.

And if you can teach your fingers some new way of pushing, then inside
that alias you can obviously add any commands you would want.

                          Linus
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ